Skip to content

Commit

Permalink
change np.alltrue back to np.all for numpy 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jlarsen-usgs committed Feb 16, 2024
1 parent 664ab37 commit 6e6aec9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flopy/plot/map.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ def contour_array(self, a, masked_values=None, tri_mask=False, **kwargs):
for ix, nodes in enumerate(triangles):
neighbors = self.mg.neighbors(nodes[i], as_nodes=True)
isin = np.isin(nodes[i + 1 :], neighbors)
if not np.alltrue(isin):
if not np.all(isin):
mask[ix] = True

if ismasked is not None:
Expand Down

0 comments on commit 6e6aec9

Please sign in to comment.