Private function: return a recarray, a ndarray, a MaskedArray or a MaskedRecords depending on the input parameters
(output, usemask=True, asrecarray=False)
| 323 | |
| 324 | |
| 325 | def _fix_output(output, usemask=True, asrecarray=False): |
| 326 | """ |
| 327 | Private function: return a recarray, a ndarray, a MaskedArray |
| 328 | or a MaskedRecords depending on the input parameters |
| 329 | """ |
| 330 | if not isinstance(output, MaskedArray): |
| 331 | usemask = False |
| 332 | if usemask: |
| 333 | if asrecarray: |
| 334 | output = output.view(MaskedRecords) |
| 335 | else: |
| 336 | output = ma.filled(output) |
| 337 | if asrecarray: |
| 338 | output = output.view(recarray) |
| 339 | return output |
| 340 | |
| 341 | |
| 342 | def _fix_defaults(output, defaults=None): |
no test coverage detected