lsst.shapelet gd79a88f3f0+da354f297c
radialProfileContinued.py
Go to the documentation of this file.
1import numpy as np
2
3from .radialProfile import RadialProfile
4
5from lsst.utils import continueClass
6
7__all__ = []
8
9
10@continueClass # noqa: F811 (FIXME: remove for py 3.8+)
11class RadialProfile: # noqa: F811
12 def evaluate(self, r):
13 if isinstance(r, np.ndarray):
14 return self._evaluate(r.ravel()).reshape(r.shape)
15 else:
16 return self._evaluate(r)