-
Notifications
You must be signed in to change notification settings - Fork 224
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
Figure.velo: Deprecate parameters "color" to "fill" and "uncertaintycolor" to "uncertaintyfill" (remove in v0.12.0) #2206
Conversation
/format |
pygmt/src/velo.py
Outdated
|
||
|
||
@fmt_docstring | ||
@deprecate_parameter("color", "fill", "v0.8.0", "v0.12.0") | ||
@use_alias( | ||
A="vector", | ||
B="frame", | ||
C="cmap", | ||
D="rescale", | ||
E="uncertaintycolor", |
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'm wondering if we should also deprecated uncertaintycolor
to uncertaintyfill
.
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.
In my opinion, yes since it also colors the inside of a polygon! I made some changes. If we go with uncertaintyfill
then test_velo.py
also needs to be updated.
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.
Yes, please also update test_velo.py
then we can ping other maintainers to see what they think about the two deprecations.
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.
Done @seisman.
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 to me, but let's see what other @GenericMappingTools/pygmt-maintainers say about the two deprecated parameters.
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.
Yep, ok with double deprecation!
…olor" to "uncertaintyfill" (remove in v0.12.0) (GenericMappingTools#2206)
Addresses #1617
Description of proposed changes
Fixes #
Reminders
make format
andmake check
to make sure the code follows the style guide.doc/api/index.rst
.Slash Commands
You can write slash commands (
/command
) in the first line of a comment to performspecific operations. Supported slash commands are:
/format
: automatically format and lint the code/test-gmt-dev
: run full tests on the latest GMT development version