Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undo deprecation of coordinate conversion methods #142

Merged
merged 7 commits into from
Oct 27, 2022

Conversation

santisoler
Copy link
Member

Revert "Deprecate the coordinate conversion methods (#126)" to ditch the
deprecation warnings for the coordinate conversion methods.
Restore the coordinate conversion methods using the pymap3d functions under
the hood. Pass the longitude and latitude arguments and get the returns in the
proper order. Add pymap3d as a required dependency of Boule.

Relevant issues/PRs:

#126, fatiando/harmonica#350,
Fatiando Dev Meeting of 2022-09-28

santisoler and others added 5 commits October 26, 2022 12:06
Ditch the old implementations of the coordinate conversion methods and
use pymap3d functions under the hood. Pass longitude and latitude
arguments and get the returns in the proper order.
Add back the code for the coordinate conversions. It's not much code, we
have the tests already, and pymap3d may not be a very stable dependency
when it comes to their ellipsoid representation.
@leouieda
Copy link
Member

@santisoler after looking this over a bit, I thought it was best to not add pymap3d as a direct dependency. It's not a lot of code, we already have in the code base + tests, and pymap3d may decide to change their ellipsoid. So let's keep this in here for convenience but make it possible to do other conversions with pymap3d.

We may have to revisit this when we do layered ellipsoids since we'd need to the Cartesian conversion as well. But that can come later.

I pushed an update to the tutorial as well to use our methods and then have a section for pymap3d.

@leouieda leouieda mentioned this pull request Oct 27, 2022
32 tasks
@leouieda
Copy link
Member

Need to wait for #144 since pymap3d>2.9 doesn't exist for 3.6.

@leouieda leouieda changed the title Restore coordinate conversion methods Undo deprecation of coordinate conversion methods Oct 27, 2022
@leouieda leouieda merged commit d146eed into main Oct 27, 2022
@leouieda leouieda deleted the coordinate-conversions branch October 27, 2022 13:44
@leouieda
Copy link
Member

Also best to not add a new dependency during a bug fix release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants