From b78b51b4ae048067c404353bb4d2ae8552c65e63 Mon Sep 17 00:00:00 2001 From: getzze Date: Wed, 11 Sep 2024 12:58:26 +0100 Subject: [PATCH] use pathlib.Path --- tests/nn/test_tracking_integration.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/nn/test_tracking_integration.py b/tests/nn/test_tracking_integration.py index 84707fd44..2852a72b7 100644 --- a/tests/nn/test_tracking_integration.py +++ b/tests/nn/test_tracking_integration.py @@ -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 @@ -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):