MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / test_decollation_dict

Method test_decollation_dict

tests/data/utils/test_decollate.py:131–138  ·  view source on GitHub ↗
(self, *transforms)

Source from the content-addressed store, hash-verified

129
130 @parameterized.expand(TESTS_DICT)
131 def test_decollation_dict(self, *transforms):
132 t_compose = Compose([EnsureChannelFirstd(KEYS, channel_dim="no_channel"), Compose(transforms), ToTensord(KEYS)])
133 # If nibabel present, read from disk
134 if has_nib:
135 t_compose = Compose([LoadImaged("image", image_only=True), t_compose])
136
137 dataset = CacheDataset(self.data_dict, t_compose, progress=False)
138 self.check_decollate(dataset=dataset)
139
140 @parameterized.expand(TESTS_LIST)
141 def test_decollation_tensor(self, *transforms):

Callers

nothing calls this directly

Calls 6

check_decollateMethod · 0.95
ComposeClass · 0.90
EnsureChannelFirstdClass · 0.90
ToTensordClass · 0.90
LoadImagedClass · 0.90
CacheDatasetClass · 0.90

Tested by

no test coverage detected