Recursively fill `a` with `fill_value`.
(a, mask, fill_value)
| 2543 | |
| 2544 | |
| 2545 | def _recursive_filled(a, mask, fill_value): |
| 2546 | """ |
| 2547 | Recursively fill `a` with `fill_value`. |
| 2548 | |
| 2549 | """ |
| 2550 | names = a.dtype.names |
| 2551 | for name in names: |
| 2552 | current = a[name] |
| 2553 | if current.dtype.names is not None: |
| 2554 | _recursive_filled(current, mask[name], fill_value[name]) |
| 2555 | else: |
| 2556 | np.copyto(current, fill_value[name], where=mask[name]) |
| 2557 | |
| 2558 | |
| 2559 | def flatten_structured_array(a): |
no outgoing calls
no test coverage detected
searching dependent graphs…