utils.submask#
Back to Module page
Summary#
Signature#
def submask(bigmask, *indarrays)
Name |
Type |
Default |
Description |
|---|---|---|---|
|
Boolean mask that picks out a subset of \`valid’ elements within a set |
||
|
Each indarray is either a list of indices or a Boolean mask, into the parent set of bigmask, to be retained, subject to validity |
Output variables#
Return annotation |
Docstring type |
Description |
|---|---|---|
|
Boolean mask (of length np.count_nonzero(bigmask)) into the set of \`valid’ elements that picks out elements indexed by the union of the indarrays |
Docstring#
:param bigmask:
Boolean mask that picks out a subset of `valid' elements within a set
:param indarrays:
Each indarray is either a list of indices or a Boolean mask, into the
parent set of bigmask, to be retained, subject to validity
:return: Boolean mask (of length np.count_nonzero(bigmask)) into the set of
`valid' elements that picks out elements indexed by the union of the
indarrays