-
Notifications
You must be signed in to change notification settings - Fork 235
Add a note/warning that PS_CONVERT is not supported #4342
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
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.
Pull request overview
This pull request adds support for GMT's PS_CONVERT configuration parameter in PyGMT's psconvert function. When users call psconvert explicitly, any PS_CONVERT settings configured in their GMT environment will now be used as default options, matching GMT's behavior.
Changes:
- Adds logic to read PS_CONVERT configuration via
lib.get_default() - Parses comma-separated options from PS_CONVERT and injects them as defaults
- Ensures user-provided arguments take precedence over PS_CONVERT settings
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <[email protected]>
|
Thanks @seisman for the guidance, I have revised it according to Solution 1. |
|
@Chuan1937 Please make changes following the discussions in #4256. Let me know if anything is unclear. |
Co-authored-by: Dongdong Tian <[email protected]>
Co-authored-by: Dongdong Tian <[email protected]>
Co-authored-by: Dongdong Tian <[email protected]>
|
Looks good to me. Since it's an enhacenement, not a new feature, I will merge it in 24 hours if no further comments. |
Co-authored-by: Yvonne Fröhlich <[email protected]>
Co-authored-by: Yvonne Fröhlich <[email protected]>
Co-authored-by: Yvonne Fröhlich <[email protected]>
Add a note and warning that PS_CONVERT is not supported in PyGMT.
Fixes #4256
Preview: https://pygmt-dev--4342.org.readthedocs.build/en/4342/api/generated/pygmt.config.html#pygmt.config