|
- def __call__(self, a, b=None):
- "Executes the call behavior."
- if b is None:
- # 2016-04-13, 1.13.0
- warnings.warn(
- "Single-argument form of np.ma.{0} is deprecated. Use "
- "np.ma.{0}.reduce instead.".format(self.__name__),
- DeprecationWarning, stacklevel=2)
- return self.reduce(a)
- return where(self.compare(a, b), a, b)]
复制代码 |
|