Skip to content
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

clib.Session: Wrap the GMT_Get_Common API function #2500

Merged
merged 8 commits into from
Apr 21, 2023
Merged

Conversation

seisman
Copy link
Member

@seisman seisman commented Apr 18, 2023

Description of proposed changes

Wrap the GMT_Get_Common API function.

Wrapping this function is a necessary step toward addressing other issues/enhancements:

@seisman seisman added this to the 0.10.0 milestone Apr 18, 2023
@seisman seisman added enhancement Improving an existing feature needs review This PR has higher priority and needs review. labels Apr 18, 2023
@seisman seisman marked this pull request as ready for review April 18, 2023 00:56
pygmt/clib/session.py Outdated Show resolved Hide resolved
pygmt/clib/session.py Outdated Show resolved Hide resolved
pygmt/clib/session.py Outdated Show resolved Hide resolved
pygmt/clib/session.py Outdated Show resolved Hide resolved
@seisman seisman added final review call This PR requires final review and approval from a second reviewer and removed needs review This PR has higher priority and needs review. labels Apr 18, 2023
@seisman
Copy link
Member Author

seisman commented Apr 18, 2023

Hopefully, this PR can get another review before I merge it @GenericMappingTools/pygmt-maintainers

pygmt/clib/session.py Outdated Show resolved Hide resolved
pygmt/clib/session.py Outdated Show resolved Hide resolved
pygmt/clib/session.py Outdated Show resolved Hide resolved
- ``"a"``: geometry of the dataset (int)
- ``"b"``: return 0 if `-bi` was set and 1 if `-bo` was set (int)
- ``"f"``: return 0 if `-fi` was set and 1 if `-fo` was set (int)
- ``"h"``: whether to delete existing header records (int)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at https://docs.generic-mapping-tools.org/6.4/gmt.html#h-full, is this just checking whether -h+d was set?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes.

pygmt/clib/session.py Show resolved Hide resolved
pygmt/clib/session.py Outdated Show resolved Hide resolved
@seisman seisman removed the final review call This PR requires final review and approval from a second reviewer label Apr 21, 2023
@seisman seisman merged commit a840d9a into main Apr 21, 2023
@seisman seisman deleted the wrap-gmt-get-common branch April 21, 2023 05:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improving an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants