Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, coeffs, gm, r0, omega=None, errors=None, lmax=None,
copy=False):
self._coeffs = _SHCoeffs.from_array(coeffs, lmax=lmax, copy=copy)
self.gm = gm
self.r0 = r0
self.omega = omega
self.errors = errors
if self.omega is not None:
self.centrifugal = _Centrifugal(omega=self.omega)