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, errors=None, ell=None, omega=None):
if ell is not None:
self._ell = ell
else:
self._ell = _LevelEllipsoid()
if omega is None:
omega = self._ell.omega
self._coeffs = _SHGravCoeffs.from_array(coeffs=coeffs, gm=gm, r0=r0,
errors=errors, omega=omega, copy=True)