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

Method __call__

numpy/ma/core.py:813–819  ·  view source on GitHub ↗

Execute the call behavior.

(self, x)

Source from the content-addressed store, hash-verified

811 self.b = b
812
813 def __call__(self, x):
814 "Execute the call behavior."
815 # nans at masked positions cause RuntimeWarnings, even though
816 # they are masked. To avoid this we suppress warnings.
817 with np.errstate(invalid='ignore'):
818 return umath.logical_or(umath.greater(x, self.b),
819 umath.less(x, self.a))
820
821
822class _DomainTan:

Callers

nothing calls this directly

Calls 1

lessMethod · 0.45

Tested by

no test coverage detected