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