Puts printoptions in result where mask is True. Private function allowing for recursion
(result, mask, printopt)
| 2491 | |
| 2492 | |
| 2493 | def _recursive_printoption(result, mask, printopt): |
| 2494 | """ |
| 2495 | Puts printoptions in result where mask is True. |
| 2496 | |
| 2497 | Private function allowing for recursion |
| 2498 | |
| 2499 | """ |
| 2500 | names = result.dtype.names |
| 2501 | if names is not None: |
| 2502 | for name in names: |
| 2503 | curdata = result[name] |
| 2504 | curmask = mask[name] |
| 2505 | _recursive_printoption(curdata, curmask, printopt) |
| 2506 | else: |
| 2507 | np.copyto(result, printopt, where=mask) |
| 2508 | |
| 2509 | |
| 2510 | # For better or worse, these end in a newline |
no outgoing calls
no test coverage detected
searching dependent graphs…