Skip to content

Commit

Permalink
use pathlib.Path
Browse files Browse the repository at this point in the history
  • Loading branch information
getzze committed Sep 11, 2024
1 parent 66759a6 commit 10799b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/nn/test_tracking_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import operator
import os
import time
from pathlib import Path

import sleap
from sleap.nn.inference import main as inference_cli
Expand Down Expand Up @@ -128,9 +129,8 @@ def make_tracker(
return tracker

def make_filename(tracker_name, matcher_name, sim_name, scale=0):
return os.path.join(
dir,
f"{tracker_name}_{int(scale * 100)}_{matcher_name}_{sim_name}.h5",
return Path(dir).joinpath(
f"{tracker_name}_{int(scale * 100)}_{matcher_name}_{sim_name}.h5"
)

def make_tracker_and_filename(*args, **kwargs):
Expand Down

0 comments on commit 10799b9

Please sign in to comment.