Skip to content

Commit

Permalink
test back
Browse files Browse the repository at this point in the history
  • Loading branch information
Ainur Karimov committed Dec 16, 2024
1 parent e14126e commit af10597
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions tests/unit/datamodules/lightning_datamodules/test_rtk.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,31 +31,31 @@ def test_DicomCocoComplexingDataModule():
assert k in batch


# def test_DicomCocoDataModuleRTK():
# target_dir = "./data/rtk/infer"
# if os.path.exists(target_dir):
# shutil.rmtree(target_dir)
#
# path = {"source": rtk_segm, "target": target_dir}
# dm = DicomCocoDataModuleRTK(infer=path)
# dm.setup_infer()
# ds = dm.predict_dataloader()
# for batch in ds:
# break
# # for k in ["image", "path"]:
# # assert k in batch
# #
#
# def test_DicomCocoDataset_rtk():
# """
# import this test to run after previous
# """
# path = "./data/rtk/infer"
# ds = DicomCocoDatasetRTK(data_dir=path)
# for batch in ds:
# break
# for k in ["image", "mask", "path"]:
# assert k in batch
def test_DicomCocoDataModuleRTK():
target_dir = "./data/rtk/infer"
if os.path.exists(target_dir):
shutil.rmtree(target_dir)

path = {"source": rtk_segm, "target": target_dir}
dm = DicomCocoDataModuleRTK(infer=path)
dm.setup_infer()
ds = dm.predict_dataloader()
for batch in ds:
break
for k in ["image", "path"]:
assert k in batch


def test_DicomCocoDataset_rtk():
"""
import this test to run after previous
"""
path = "./data/rtk/infer"
ds = DicomCocoDatasetRTK(data_dir=path)
for batch in ds:
break
for k in ["image", "mask", "path"]:
assert k in batch
#

def test_datamodule_description():
Expand Down

0 comments on commit af10597

Please sign in to comment.