diff --git a/flopy/mf6/utils/model_splitter.py b/flopy/mf6/utils/model_splitter.py index 65582f390e..090a388b09 100644 --- a/flopy/mf6/utils/model_splitter.py +++ b/flopy/mf6/utils/model_splitter.py @@ -427,7 +427,7 @@ def optimize_splitting_mask(self, nparts): mnums1 = membership[nodes1] mnums2 = membership[nodes2] ev = np.equal(mnums1, mnums2) - if np.alltrue(ev): + if np.all(ev): continue idx = np.where(~ev)[0] mnum_to = mnums1[idx] diff --git a/flopy/plot/map.py b/flopy/plot/map.py index 93d272ec02..c8714327bc 100644 --- a/flopy/plot/map.py +++ b/flopy/plot/map.py @@ -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: