Skip to content

Commit

Permalink
Fix numpy 2 removal (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro authored Jun 17, 2024
1 parent 7f05435 commit 08b5448
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spatialpandas/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ def _asarray_maybe_ragged(input):
NumPy array.
"""
with warnings.catch_warnings():
warnings.simplefilter('error', np.VisibleDeprecationWarning)
warnings.simplefilter('error', np.exceptions.VisibleDeprecationWarning)
try:
array = np.asarray(input)
except (ValueError, np.VisibleDeprecationWarning):
except (ValueError, np.exceptions.VisibleDeprecationWarning):
array = np.asarray(input, dtype=object)

return array

0 comments on commit 08b5448

Please sign in to comment.