diff --git a/pipedream_solver/nquality.py b/pipedream_solver/nquality.py index 0818254..c68bde0 100644 --- a/pipedream_solver/nquality.py +++ b/pipedream_solver/nquality.py @@ -101,7 +101,7 @@ def __init__(self, hydraulics, superjunction_params, superlink_params, self._kI = self.hydraulics._kI self._K_j = superjunction_params['K'].values.astype(np.float64) self._c_j = superjunction_params['c_0'].values.astype(np.float64) - self.bc = superjunction_params['bc'].values.astype(np.bool8) + self.bc = superjunction_params['bc'].values.astype(np.bool_) if junction_params is not None: self._K_Ik = junction_params['K'].values.astype(np.float64) self._c_Ik = junction_params['c_0'].values.astype(np.float64) diff --git a/pipedream_solver/nsuperlink.py b/pipedream_solver/nsuperlink.py index 107355e..829d03f 100644 --- a/pipedream_solver/nsuperlink.py +++ b/pipedream_solver/nsuperlink.py @@ -1679,7 +1679,7 @@ def reposition_junctions(self, reposition=None): _H_dk = H_j[_J_dk] # Handle which superlinks to reposition if reposition is None: - reposition = np.ones(NK, dtype=np.bool8) + reposition = np.ones(NK, dtype=np.bool_) # Reposition junctions numba_reposition_junctions(_x_Ik, _z_inv_Ik, _h_Ik, _dx_ik, _Q_ik, _H_dk, _b0, _zc, _xc, _m, _elem_pos, _i_1k, _I_1k,