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

Function setUpModule

tests/utils/enums/test_wsireader.py:452–470  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

450
451@skipUnless(has_cucim or has_osl or has_tiff, "Requires cucim, openslide, or tifffile!")
452def setUpModule():
453 download_url_or_skip_test(
454 testing_data_config("images", WSI_GENERIC_TIFF_KEY, "url"),
455 WSI_GENERIC_TIFF_PATH,
456 hash_type=testing_data_config("images", WSI_GENERIC_TIFF_KEY, "hash_type"),
457 hash_val=testing_data_config("images", WSI_GENERIC_TIFF_KEY, "hash_val"),
458 )
459 download_url_or_skip_test(
460 testing_data_config("images", WSI_GENERIC_TIFF_CORRECT_MPP_KEY, "url"),
461 WSI_GENERIC_TIFF_CORRECT_MPP_PATH,
462 hash_type=testing_data_config("images", WSI_GENERIC_TIFF_CORRECT_MPP_KEY, "hash_type"),
463 hash_val=testing_data_config("images", WSI_GENERIC_TIFF_CORRECT_MPP_KEY, "hash_val"),
464 )
465 download_url_or_skip_test(
466 testing_data_config("images", WSI_APERIO_SVS_KEY, "url"),
467 WSI_APERIO_SVS_PATH,
468 hash_type=testing_data_config("images", WSI_APERIO_SVS_KEY, "hash_type"),
469 hash_val=testing_data_config("images", WSI_APERIO_SVS_KEY, "hash_val"),
470 )
471
472
473class WSIReaderTests:

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…