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

Method __call__

numpy/ma/extras.py:287–291  ·  view source on GitHub ↗
(self, x, *args, **params)

Source from the content-addressed store, hash-verified

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

nothing calls this directly

Calls 2

getmaskarrayFunction · 0.85
funcFunction · 0.50

Tested by

no test coverage detected