Skip to content

Commit

Permalink
hotfix(numpy 2.0 deprecation)replace np.alltrue with np.all in plot/m…
Browse files Browse the repository at this point in the history
…ap.py
  • Loading branch information
mnfienen committed Feb 3, 2024
1 parent 86eb092 commit 354255a
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 @@ -284,7 +284,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 354255a

Please sign in to comment.