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

Function setUpModule

tests/data/test_sliding_patch_wsi_dataset.py:208–214  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

206
207@skipUnless(has_cucim or has_tiff, "Requires cucim, openslide, or tifffile!")
208def setUpModule():
209 for info in [(ARRAY_SMALL_0, FILE_PATH_SMALL_0), (ARRAY_SMALL_1, FILE_PATH_SMALL_1)]:
210 array = info[0].transpose([1, 2, 0])
211 imwrite(info[1], array, shape=array.shape, photometric="rgb")
212 hash_type = testing_data_config("images", FILE_KEY, "hash_type")
213 hash_val = testing_data_config("images", FILE_KEY, "hash_val")
214 download_url_or_skip_test(FILE_URL, FILE_PATH, hash_type=hash_type, hash_val=hash_val)
215
216
217class SlidingPatchWSIDatasetTests:

Callers

nothing calls this directly

Calls 2

testing_data_configFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…