def test_points_from_boundaries(self): bounds = np.array([1., 3, 4, 10]) centers = funcs.points_from_boundaries(bounds) self.assertTrue(np.array_equal(centers, np.array([2., 3.5, 7])))
def test_points_from_boundaries(self): bounds = np.array([1., 3, 4, 10]) centers = funcs.points_from_boundaries(bounds) self.assertTrue(np.array_equal(centers, np.array([2., 3.5, 7])))