Execute the call behavior.
(self, x)
| 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 | |
| 822 | class _DomainTan: |