the current NumpyImageTestCase2D and NumpyImageTestCase3D use create_test_image_*
|
im, msk = create_test_image_2d(self.im_shape[0], self.im_shape[1], 4, 20, 0, self.num_classes) |
without the local
random_state parameter
|
random_state: Optional[np.random.RandomState] = None, |
the relevant unit tests therefore become dependent on each other via the global random state. this should be rectified
the current
NumpyImageTestCase2DandNumpyImageTestCase3Dusecreate_test_image_*MONAI/tests/utils.py
Line 444 in 866d53d
random_stateparameterMONAI/monai/data/synthetic.py
Line 29 in 866d53d
the relevant unit tests therefore become dependent on each other via the global random state. this should be rectified