Update the fill_value and masked data of `output` from the default given in a dictionary defaults.
(output, defaults=None)
| 340 | |
| 341 | |
| 342 | def _fix_defaults(output, defaults=None): |
| 343 | """ |
| 344 | Update the fill_value and masked data of `output` |
| 345 | from the default given in a dictionary defaults. |
| 346 | """ |
| 347 | names = output.dtype.names |
| 348 | (data, mask, fill_value) = (output.data, output.mask, output.fill_value) |
| 349 | for (k, v) in (defaults or {}).items(): |
| 350 | if k in names: |
| 351 | fill_value[k] = v |
| 352 | data[k][mask[k]] = v |
| 353 | return output |
| 354 | |
| 355 | |
| 356 | def _merge_arrays_dispatcher(seqarrays, fill_value=None, flatten=None, |
no outgoing calls
no test coverage detected