fatiando / boule

Reference ellipsoids for geodesy and geophysics
https://www.fatiando.org/boule
BSD 3-Clause "New" or "Revised" License
38 stars 17 forks source link

Add parameter validation for the Sphere #56

Closed leouieda closed 3 years ago

leouieda commented 3 years ago

Add a check method for the radius (make sure it's > 0). For some reason, the check for the geocentric gravitational constant wasn't being inherited from Ellipsoid so I added that to Sphere as well. Includes tests to make sure the checks are executed.

Reminders:

leouieda commented 3 years ago

That's my guess. The methods and attributes are inherited but they aren't linked properly.