Shrink a mask to nomask if possible
(m)
| 1543 | |
| 1544 | |
| 1545 | def _shrink_mask(m): |
| 1546 | """ |
| 1547 | Shrink a mask to nomask if possible |
| 1548 | """ |
| 1549 | if m.dtype.names is None and not m.any(): |
| 1550 | return nomask |
| 1551 | else: |
| 1552 | return m |
| 1553 | |
| 1554 | |
| 1555 | def make_mask(m, copy=False, shrink=True, dtype=MaskType): |
no test coverage detected