(func, signature, output_dtypes, exclude_dims)
| 692 | |
| 693 | |
| 694 | def _vectorize(func, signature, output_dtypes, exclude_dims): |
| 695 | if signature.all_core_dims: |
| 696 | func = np.vectorize( |
| 697 | func, |
| 698 | otypes=output_dtypes, |
| 699 | signature=signature.to_gufunc_string(exclude_dims), |
| 700 | ) |
| 701 | else: |
| 702 | func = np.vectorize(func, otypes=output_dtypes) |
| 703 | |
| 704 | return func |
| 705 | |
| 706 | |
| 707 | def apply_variable_ufunc( |
no test coverage detected
searching dependent graphs…