Example #1
0
 def setUp(self):
     """ Set up cubes for testing. """
     self.cube1 = create_cube_with_threshold()
     data = np.zeros((1, 2, 2, 2))
     data[0, 0, :, :] = 0.1
     data[0, 1, :, :] = 0.4
     self.cube2 = create_cube_with_threshold(data=data)
     data2 = np.zeros((1, 2, 2, 2))
     data2[0, 0, :, :] = 0.1
     data2[0, 1, :, :] = 0.8
     self.cube3 = create_cube_with_threshold(data=data2)
 def setUp(self):
     """Setup for testing cube creation."""
     self.cube = create_cube_with_threshold()