Skip to content

Commit

Permalink
Corrects testing_data paths on tests
Browse files Browse the repository at this point in the history
  • Loading branch information
garciadias committed Jan 23, 2025
1 parent 19b2fdf commit 7a34f01
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tests/data/test_masked_patch_wsi_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from __future__ import annotations

import os
from pathlib import Path
import unittest
from unittest import skipUnless

Expand All @@ -34,7 +35,7 @@

FILE_KEY = "wsi_generic_tiff"
FILE_URL = testing_data_config("images", FILE_KEY, "url")
TESTS_PATH = os.path.dirname(os.path.realpath(__file__))
TESTS_PATH = Path(__file__).parents[1]
FILE_PATH = os.path.join(TESTS_PATH, "testing_data", f"temp_{FILE_KEY}.tiff")

TEST_CASE_0 = [
Expand Down
2 changes: 1 addition & 1 deletion tests/networks/blocks/warp/test_warp.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def test_grad(self):
gradcheck(warp_layer, (input_image, ddf), atol=1e-2, eps=1e-2)


TESTS_PATH = Path(__file__).parents[1]
TESTS_PATH = Path(__file__).parents[3]
FILE_PATH = os.path.join(TESTS_PATH, "testing_data", "temp_" + "mri.nii")


Expand Down

0 comments on commit 7a34f01

Please sign in to comment.