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

Add deprecation warnings for get_units_map and get_angular_units_map #608

Merged
merged 1 commit into from
Apr 30, 2020

Conversation

snowman2
Copy link
Member

@snowman2 snowman2 commented Apr 30, 2020

@snowman2 snowman2 merged commit 42d2d7f into pyproj4:master Apr 30, 2020
@@ -74,6 +75,12 @@ def get_units_map():
dict:
Units supported by PROJ
"""
warnings.warn(
"The behavior of 'pyproj.get_units_map' is deprecated "
"and will change in version 3.0.0.",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small comment: it's not very clear what the consequence of this is: what will change? What should the user do instead when seeing this warning?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The user really cannot do much here as the change will just happen. The exact change isn't 100% decided, but will definitely be different.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then it is maybe a bit too soon to raise a warning? As this will just be confusing, I might think

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, I wanted to have something. Not sure if there are going to be any more 2.x releases after this next one.

@snowman2 snowman2 deleted the deprecate_units branch May 4, 2020 02:32
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.

2 participants