fatiando / harmonica

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

Raise error for zero depth value in equivalent sources #524

Closed Souza-junior closed 2 months ago

Souza-junior commented 2 months ago

Raise error message for zero depth values in EquivalentSources and EquivalentSourcesGB classes. Add associated tests.

Fix #523

santisoler commented 2 months ago

Thanks @Souza-junior for this! It's looking great, I'm merging it! 🚀

Also, thanks @VascoSch92 for the comment, and @mdtanker for reporting the bug. We'll have this bugfix in the next release.