Skip to content

Commit 8682531

Browse files
committed
fix numpy warnings
1 parent 4a62239 commit 8682531

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adaptive/tests/test_learner1d.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,8 @@ def f_vec(x, offset=0.123214):
265265
def assert_equal_dicts(d1, d2):
266266
xs1, ys1 = zip(*sorted(d1.items()))
267267
xs2, ys2 = zip(*sorted(d2.items()))
268-
ys1 = np.array(ys1, dtype=np.float)
269-
ys2 = np.array(ys2, dtype=np.float)
268+
ys1 = np.array(ys1, dtype=np.float64)
269+
ys2 = np.array(ys2, dtype=np.float64)
270270
np.testing.assert_almost_equal(xs1, xs2)
271271
np.testing.assert_almost_equal(ys1, ys2)
272272

0 commit comments

Comments
 (0)