fatiando / harmonica

Forward modeling, inversion, and processing gravity and magnetic data
https://www.fatiando.org/harmonica
BSD 3-Clause "New" or "Revised" License
208 stars 68 forks source link

Warn for prism gravity tensor on singular points #401

Closed santisoler closed 1 year ago

santisoler commented 1 year ago

Check if the gravity tensor components of a prism are being computed at any singular point. Choclo will return a np.nan on those points, but it's worth warning the user about it before they get the results. Add tests that check if the warnings are being raised on those cases.

Relevant issues/PRs:

Merge after #400 is merged.

Await until https://github.com/fatiando/choclo/pull/30 is merged and released.

santisoler commented 1 year ago

Closing this, since I merged this branch into #400