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

Method setUpClass

tests/transforms/utility/test_splitdimd.py:33–39  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

31
32 @classmethod
33 def setUpClass(cls) -> None:
34 arr = np.random.rand(2, 10, 8, 7)
35 affine = make_rand_affine()
36 data = {"i": make_nifti_image(arr, affine)}
37
38 loader = LoadImaged("i", image_only=True)
39 cls.data = loader(data)
40
41 @parameterized.expand(TESTS)
42 def test_correct(self, keepdim, _, update_meta, list_output):

Callers

nothing calls this directly

Calls 3

make_rand_affineFunction · 0.90
make_nifti_imageFunction · 0.90
LoadImagedClass · 0.90

Tested by

no test coverage detected