Puts printoptions in result where mask is True. Private function allowing for recursion
(result, mask, printopt)
| 2421 | |
| 2422 | |
| 2423 | def _recursive_printoption(result, mask, printopt): |
| 2424 | """ |
| 2425 | Puts printoptions in result where mask is True. |
| 2426 | |
| 2427 | Private function allowing for recursion |
| 2428 | |
| 2429 | """ |
| 2430 | names = result.dtype.names |
| 2431 | if names is not None: |
| 2432 | for name in names: |
| 2433 | curdata = result[name] |
| 2434 | curmask = mask[name] |
| 2435 | _recursive_printoption(curdata, curmask, printopt) |
| 2436 | else: |
| 2437 | np.copyto(result, printopt, where=mask) |
| 2438 | return |
| 2439 | |
| 2440 | # For better or worse, these end in a newline |
| 2441 | _legacy_print_templates = dict( |
no outgoing calls
no test coverage detected