Skip to content

Commit fbbcafc

Browse files
committed
Fixes testing_data paths
1 parent 1e281a6 commit fbbcafc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/losses/image_dissimilarity/test_global_mutual_information_loss.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
device = "cuda:0" if torch.cuda.is_available() else "cpu"
2626

27-
TESTS_PATH = Path(__file__).parents[1]
27+
TESTS_PATH = Path(__file__).parents[2]
2828
FILE_PATH = os.path.join(TESTS_PATH, "testing_data", "temp_" + "mri.nii")
2929

3030
EXPECTED_VALUE = {

tests/utils/enums/test_wsireader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
_, has_codec = optional_import("imagecodecs")
3737
has_tiff = has_tiff and has_codec
3838

39-
TESTS_PATH = Path(__file__).parents[1]
39+
TESTS_PATH = Path(__file__).parents[2]
4040
WSI_GENERIC_TIFF_KEY = "wsi_generic_tiff"
4141
WSI_GENERIC_TIFF_PATH = os.path.join(TESTS_PATH, "testing_data", f"temp_{WSI_GENERIC_TIFF_KEY}.tiff")
4242

0 commit comments

Comments
 (0)