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