Skip to content

Commit

Permalink
MNT: Replace NaN with nan for numpy 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
greglucas committed Mar 9, 2024
1 parent fb7b25b commit 93dbe03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cartopy/tests/crs/test_oblique_mercator.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def test_equality(oblique_variants):
"reverse_coord", [False, True], ids=["xy_order", "yx_order"]
)
def test_nan(oblique_mercator, plate_carree, reverse_coord):
coord = (0.0, np.NaN)
coord = (0.0, np.nan)
if reverse_coord:
coord = tuple(reversed(coord))
res = oblique_mercator.transform_point(*coord, src_crs=plate_carree)
Expand Down

0 comments on commit 93dbe03

Please sign in to comment.