MCPcopy Create free account
hub / github.com/numpy/numpy / _flatmask

Function _flatmask

numpy/ma/core.py:1792–1798  ·  view source on GitHub ↗

Flatten the mask and returns a (maybe nested) sequence of booleans.

(mask)

Source from the content-addressed store, hash-verified

1790 """
1791
1792 def _flatmask(mask):
1793 "Flatten the mask and returns a (maybe nested) sequence of booleans."
1794 mnames = mask.dtype.names
1795 if mnames is not None:
1796 return [flatten_mask(mask[name]) for name in mnames]
1797 else:
1798 return mask
1799
1800 def _flatsequence(sequence):
1801 "Generates a flattened version of the sequence."

Callers 1

flatten_maskFunction · 0.85

Calls 1

flatten_maskFunction · 0.85

Tested by

no test coverage detected