-
Notifications
You must be signed in to change notification settings - Fork 234
pygmt.project: Deprecate parameter unit to units (Will be removed in v0.20.0) #4297
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
base: main
Are you sure you want to change the base?
Conversation
pygmt/src/grdproject.py
Outdated
| @fmt_docstring | ||
| @use_alias(E="dpi", F="scaling", I="inverse", M="unit", n="interpolation") | ||
| @deprecate_parameter("unit", "units", "v0.18.0", remove_version="v0.20.0") | ||
| @use_alias(E="dpi", F="scaling", I="inverse", M="units", n="interpolation") |
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 think it should be unit, not units, since it takes one single unit in this module.
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 wondering it it makes sense to have this consistent across function / methods and always use plural.
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 think we should use unit and units in different cases.
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.
So, we only want to change pygmt.project?
Actually, I feel aliasing |
I have to look at this in more detail, as I do not use |
Description of proposed changes
Use the plural
unitsif the units of multiple quanities can be adjusted; related to #2014.Preview:
Guidelines
Slash Commands
You can write slash commands (
/command) in the first line of a comment to performspecific operations. Supported slash command is:
/format: automatically format and lint the code