MCPcopy Create free account
hub / github.com/numpy/numpy / _fromnxfunction_seq

Class _fromnxfunction_seq

numpy/ma/extras.py:281–291  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

279
280
281class _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
294class _fromnxfunction_args(_fromnxfunction):

Callers 1

extras.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected