Skip to content

Commit

Permalink
fixed file paths for segmentation_extractor2
Browse files Browse the repository at this point in the history
  • Loading branch information
pauladkisson committed Oct 8, 2024
1 parent 5c71966 commit 1125ff0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_minimal/test_numpy_segmentation_extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def segmentation_extractor2(
)
name_to_file_path = {}
for name, ndarray in name_to_ndarray.items():
file_path = tmp_path / f"{name}.npy"
file_path = tmp_path / f"{name}2.npy"
file_path.parent.mkdir(parents=True, exist_ok=True)
np.save(file_path, ndarray)
name_to_file_path[name] = file_path
Expand All @@ -245,7 +245,7 @@ def segmentation_extractor2(
for name, dict_of_ndarrays in name_to_dict_of_ndarrays.items():
name_to_dict_of_file_paths[name] = {}
for key, ndarray in dict_of_ndarrays.items():
file_path = tmp_path / f"{name}_{key}.npy"
file_path = tmp_path / f"{name}_{key}2.npy"
np.save(file_path, ndarray)
name_to_dict_of_file_paths[name][key] = file_path

Expand Down

0 comments on commit 1125ff0

Please sign in to comment.