bellini.api.utils.mask¶
- bellini.api.utils.mask(arr, idxs, invert=False)[source]¶
Returns a mask for arr at positions idxs
- Parameters
arr (array-like) – The object to be masked
idxs (array-like) – The indices to be masked
invert (bool, default=False) – If True, positions specified by idxs will be 0, otherwise 1
- Returns
mask – Mask for arr
- Return type
Quantity (dimensionless)