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

Method get_arr

tests/croppers.py:28–29  ·  view source on GitHub ↗
(shape)

Source from the content-addressed store, hash-verified

26class CropTest(unittest.TestCase):
27 @staticmethod
28 def get_arr(shape):
29 return np.random.randint(100, size=shape).astype(float)
30
31 def crop_test(self, input_param, input_shape, expected_shape, same_area=None):
32 base_comparison = None

Callers 3

crop_testMethod · 0.95
crop_test_pending_opsMethod · 0.95
crop_test_combine_opsMethod · 0.95

Calls 1

astypeMethod · 0.80

Tested by

no test coverage detected