Skip to content

Commit

Permalink
use issubctype instead of issubdtype (which also works with numpy 2.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
jensdebruijn committed Dec 5, 2024
1 parent 245f9b8 commit 1bb2fa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geb/agents/crop_farmers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1890,7 +1890,7 @@ def get_yield_ratio(
return yield_ratio

def decompress(self, array):
if np.issubsctype(array, np.floating):
if np.issubdtype(array, np.floating):
nofieldvalue = np.nan
else:
nofieldvalue = -1
Expand Down

0 comments on commit 1bb2fa0

Please sign in to comment.