(xs, arg, fn)
| 709 | # Coerce depth and boundary arguments to lists of individual |
| 710 | # specifications for each array argument |
| 711 | def coerce(xs, arg, fn): |
| 712 | if not isinstance(arg, list): |
| 713 | arg = [arg] * len(xs) |
| 714 | return [fn(x.ndim, a) for x, a in zip(xs, arg)] |
| 715 | |
| 716 | depth = coerce(args, depth, coerce_depth) |
| 717 | boundary = coerce(args, boundary, coerce_boundary) |