-
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.plot3d: Deprecate parameter "sizes" to "size" (remove in v0.6.0) #1258
Conversation
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~
Co-authored-by: Michael Grund <23025878+michaelgrund@users.noreply.github.com>
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.
Just a similar suggestion to my comment on #1254 (comment) to use pytest.warns
(see also https://docs.pytest.org/en/6.2.x/warnings.html#warns).
Co-authored-by: Wei Ji <23487320+weiji14@users.noreply.github.com>
…0) (GenericMappingTools#1258) * Rename 'sizes' to 'size' * Updates tests and examples to use the new parameter name * Use the deprecate_parameter decorator for backward-compatibility * Add a test for checking 'sizes' backward compatibility Co-authored-by: Michael Grund <23025878+michaelgrund@users.noreply.github.com> Co-authored-by: Wei Ji <23487320+weiji14@users.noreply.github.com>
…ericMappingTools#1809) Remove the parameter "sizes" in favour of "size" from `Figure.plot` and `Figure.plot3d`. Deprecation warning was added in v0.4.0 (xref GenericMappingTools#1254, GenericMappingTools#1258), and is to be fully removed in v0.6.0.
Description of proposed changes
Closes #1118.
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