Return the filling value of a, if any. Otherwise, returns the default filling value for that type.
(a)
| 540 | |
| 541 | |
| 542 | def get_fill_value(a): |
| 543 | """ |
| 544 | Return the filling value of a, if any. Otherwise, returns the |
| 545 | default filling value for that type. |
| 546 | |
| 547 | """ |
| 548 | if isinstance(a, MaskedArray): |
| 549 | result = a.fill_value |
| 550 | else: |
| 551 | result = default_fill_value(a) |
| 552 | return result |
| 553 | |
| 554 | |
| 555 | def common_fill_value(a, b): |
no test coverage detected