A version of `_fromnxfunction` that is called with a single sequence of arrays followed by auxiliary args that are passed verbatim for both the data and mask calls.
| 279 | |
| 280 | |
| 281 | class _fromnxfunction_seq(_fromnxfunction): |
| 282 | """ |
| 283 | A version of `_fromnxfunction` that is called with a single sequence |
| 284 | of arrays followed by auxiliary args that are passed verbatim for |
| 285 | both the data and mask calls. |
| 286 | """ |
| 287 | def __call__(self, x, *args, **params): |
| 288 | func = getattr(np, self.__name__) |
| 289 | _d = func(tuple([np.asarray(a) for a in x]), *args, **params) |
| 290 | _m = func(tuple([getmaskarray(a) for a in x]), *args, **params) |
| 291 | return masked_array(_d, mask=_m) |
| 292 | |
| 293 | |
| 294 | class _fromnxfunction_args(_fromnxfunction): |