@@ -1010,12 +1010,12 @@ def _compute_mass_balance(self, kstpkper, totim):
1010
1010
rowidx = np .asarray (
1011
1011
(self ._budget ["time_step" ] == kstpkper [0 ])
1012
1012
& (self ._budget ["stress_period" ] == kstpkper [1 ])
1013
- & np .in1d (self ._budget ["name" ], innames )
1013
+ & np .isin (self ._budget ["name" ], innames )
1014
1014
).nonzero ()
1015
1015
elif totim is not None :
1016
1016
rowidx = np .asarray (
1017
1017
(self ._budget ["totim" ] == totim )
1018
- & np .in1d (self ._budget ["name" ], innames )
1018
+ & np .isin (self ._budget ["name" ], innames )
1019
1019
).nonzero ()
1020
1020
a = _numpyvoid2numeric (self ._budget [list (self ._zonenamedict .values ())][rowidx ])
1021
1021
intot = np .array (a .sum (axis = 0 ))
@@ -1028,12 +1028,12 @@ def _compute_mass_balance(self, kstpkper, totim):
1028
1028
rowidx = np .asarray (
1029
1029
(self ._budget ["time_step" ] == kstpkper [0 ])
1030
1030
& (self ._budget ["stress_period" ] == kstpkper [1 ])
1031
- & np .in1d (self ._budget ["name" ], outnames )
1031
+ & np .isin (self ._budget ["name" ], outnames )
1032
1032
).nonzero ()
1033
1033
elif totim is not None :
1034
1034
rowidx = np .asarray (
1035
1035
(self ._budget ["totim" ] == totim )
1036
- & np .in1d (self ._budget ["name" ], outnames )
1036
+ & np .isin (self ._budget ["name" ], outnames )
1037
1037
).nonzero ()
1038
1038
a = _numpyvoid2numeric (self ._budget [list (self ._zonenamedict .values ())][rowidx ])
1039
1039
outot = np .array (a .sum (axis = 0 ))
0 commit comments