Shrink a mask to nomask if possible
(m)
| 1595 | |
| 1596 | |
| 1597 | def _shrink_mask(m): |
| 1598 | """ |
| 1599 | Shrink a mask to nomask if possible |
| 1600 | """ |
| 1601 | if m.dtype.names is None and not m.any(): |
| 1602 | return nomask |
| 1603 | else: |
| 1604 | return m |
| 1605 | |
| 1606 | |
| 1607 | def make_mask(m, copy=False, shrink=True, dtype=MaskType): |
no test coverage detected
searching dependent graphs…