Converts a boolean mask to pore or throat indices
mask (ndarray) – A boolean mask with True values indicating either pore or throat indices. This array must either be Nt or Np long, otherwise an Exception is raised.
indices – An array containing numerical indices of where mask was True.
- Return type:
This function is equivalent to just calling np.where(mask) but does check to ensure that mask is a valid length.