-
Notifications
You must be signed in to change notification settings - Fork 442
MNT: Deprecate get_upper_air_data #519
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
Conversation
|
Not wild about adding a top-level |
|
We could. It's a decent chunk of code and seemed well encapsulated in its own module. What are the cons of having it separate in this case? |
|
I wasn't wild about having a top-level |
dopplershift
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's at least one flake8 failure. Also, it would be good for the top of deprecation.py to have the Matplotlib license.
|
Yep, flake8 needs some help, on the list for today hopefully. I'm not dead set on it being a separate module, but seemed like a nice unit of code that made more sense this way than as part of cbook. |
e174225 to
90a869f
Compare
metpy/deprecation.py
Outdated
| @@ -0,0 +1,316 @@ | |||
| # Copyright (c) 2008-2017 MetPy Developers. | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be better to blacklist the license check for this file in setup.cfg rather than, essentially, an incorrect block before the proper one. It could then go back to being a comment.
metpy/io/upperair.py
Outdated
|
|
||
|
|
||
| @deprecated('0.8', addendum=' This function is being moved to the Siphon package.', | ||
| pending=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why pending? Doesn't pending mean "this will soon be deprecated"? Rather than, this will be deprecated in 0.6 and removed in 0.8?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pending Message:
/Users/johnleeman/miniconda3/envs/metpydev/lib/python3.6/site-packages/ipykernel_launcher.py:5: MetpyDeprecationWarning: The get_upper_air_data function will be deprecated in a future version. This function is being moved to the Siphon package.
Without pending:
/Users/johnleeman/miniconda3/envs/metpydev/lib/python3.6/site-packages/ipykernel_launcher.py:5: MetpyDeprecationWarning: The get_upper_air_data function was deprecated in version 0.8. This function is being moved to the Siphon package.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then I'd say change the version to '0.6' and leave it as not pending since it's not actually pending--it's done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was thinking of it as pending since it's still in MetPy, but I see what you're saying. Update coming.
90a869f to
8e7fef8
Compare
|
Do we want to move on this in 0.6 @dopplershift - with the functionality not being in Siphon yet? |
|
No, the plan was to cut another Siphon release before the MetPy release. |
|
So, yes we want to move on it 😉 Sounds good. |
8e7fef8 to
09b2c94
Compare
metpy/deprecation.py
Outdated
| def finalize(wrapper, new_doc): | ||
| try: | ||
| pass | ||
| #obj.__doc = new_doc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
E265 block comment should start with '# '
metpy/deprecation.py
Outdated
|
|
||
| def finalize(wrapper, new_doc): | ||
| wrapper = functools.wraps(func)(wrapper) | ||
| #wrapper.__doc__ = new_doc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
E265 block comment should start with '# '
metpy/deprecation.py
Outdated
|
|
||
| def finalize(wrapper, new_doc): | ||
| wrapper = functools.wraps(func)(wrapper) | ||
| #wrapper.__doc__ = new_doc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
E265 block comment should start with '# '
|
I'll squash down once you have a look - wanted to make the diff easier to see. |
dopplershift
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good now. Just squash down.
929cb21 to
ce002de
Compare
ce002de to
4161fb0
Compare
|
I think this is on hold until we have the final resting place for the upper air code in siphon. |
4161fb0 to
7d39ab8
Compare
7d39ab8 to
4b0b6c8
Compare
|
@dopplershift - Should be good to go. I think we're safe ignoring codecov/codacy as the dep tool is straight from matplotlib. |
Use the matplotlib deprecation framework and deprecate get_upper_air_data. We can/should decide on which version that is official. Closes #516