(xs, arg, fn)
| 695 | # Coerce depth and boundary arguments to lists of individual |
| 696 | # specifications for each array argument |
| 697 | def coerce(xs, arg, fn): |
| 698 | if not isinstance(arg, list): |
| 699 | arg = [arg] * len(xs) |
| 700 | return [fn(x.ndim, a) for x, a in zip(xs, arg)] |
| 701 | |
| 702 | depth = coerce(args, depth, coerce_depth) |
| 703 | boundary = coerce(args, boundary, coerce_boundary) |