Skip to content

Commit 9e9452e

Browse files
committed
Avoid using np.testing.assert_allclose
For some weird reason, it fails to run with Python 3.14.3 and NumPy 2.2.6
1 parent 5a35e6d commit 9e9452e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

test/test_scan_map.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ def test_scan_map_algebras():
412412
+ np.sin(angle) * maps[2, pixind]
413413
)
414414

415-
np.testing.assert_allclose(
415+
assert np.allclose(
416416
obs.tod,
417417
tod,
418418
rtol=tolerance,
@@ -441,7 +441,7 @@ def test_scan_map_algebras():
441441
+ np.sin(angle) * maps[2, pixind]
442442
)
443443

444-
np.testing.assert_allclose(
444+
assert np.allclose(
445445
obs.tod,
446446
tod,
447447
rtol=tolerance,
@@ -470,7 +470,7 @@ def test_scan_map_algebras():
470470
+ np.sin(angle) * maps[2, pixind]
471471
)
472472

473-
np.testing.assert_allclose(
473+
assert np.allclose(
474474
obs.tod,
475475
tod,
476476
rtol=tolerance,
@@ -500,7 +500,7 @@ def test_scan_map_algebras():
500500
+ np.sin(angle) * maps[2, pixind]
501501
)
502502

503-
np.testing.assert_allclose(
503+
assert np.allclose(
504504
obs.tod,
505505
tod,
506506
rtol=tolerance,

0 commit comments

Comments
 (0)