def equals_cube_t2(self): cube = cb.equals_cube(self.l0, self.l1, tolerance=2.0) self.assertTrue(cube[0, 0, 0]) self.assertTrue(cube[0, 0, 1]) self.assertTrue(cube[0, 0, 2]) self.assertEqual(cube.sum(), 3)
def equals_cube_t0(self): cube = cb.equals_cube(self.l0, self.l1, tolerance=0.0) self.assertTrue(cube[0, 0, 0]) self.assertEqual(cube.sum(), 1)