def test_apply_logarithm(self, mock1): f = Figure() f.array = np.ones((1,2,2))*0.1 f.apply_logarithm() self.assertTrue(np.allclose(np.ones((1,2,2))*0.31622777, f.array))
def test_apply_logarithm(self, mock1): f = Figure() f.array = np.ones((1, 2, 2)) * 0.1 f.apply_logarithm() self.assertTrue(np.allclose(np.ones((1, 2, 2)) * 0.31622777, f.array))