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

Reset a bit more of the API fresh state in gmt_end_module() #7892

Merged
merged 1 commit into from
Oct 9, 2023

Conversation

joa-quim
Copy link
Member

@joa-quim joa-quim commented Oct 9, 2023

This affects externals only.

Some modules like grdimage may leave the API expecting further data to be geographic and error when receiving cartesian tables. This PR resets the internal state into a closer to what gmtlib_io_init() would have left it. Can't call it though because then some other mysterious errors would popup.

Copy link
Member

@PaulWessel PaulWessel left a comment

Choose a reason for hiding this comment

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

Did you run the test set? I am worried it could break something...

@joa-quim
Copy link
Member Author

joa-quim commented Oct 9, 2023

Only thing it could break is GMT.jl or GMTMEX. This cannot affect normal CLI since the API is going to be destroyed after this.

Copy link
Member

@PaulWessel PaulWessel left a comment

Choose a reason for hiding this comment

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

Taking your word for it.

@joa-quim joa-quim merged commit c7b20ef into master Oct 9, 2023
6 checks passed
@joa-quim joa-quim deleted the reset-more-at-end-module branch October 9, 2023 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants