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

Do ternary duplication if input is read-only #7172

Merged
merged 2 commits into from
Dec 25, 2022
Merged

Conversation

PaulWessel
Copy link
Member

See pyGMT post for discussion.

@seisman, please see if this works as expected - I am of for Xmas dinner...

Since the input to ternary may be read-only data we do not want ternary to change it in the calling environbment.  This PR does the duplication inside ternary
@PaulWessel PaulWessel added the maintenance Boring but important stuff for the core devs label Dec 24, 2022
@PaulWessel PaulWessel added this to the 6.5.0 milestone Dec 24, 2022
@PaulWessel PaulWessel self-assigned this Dec 24, 2022
@PaulWessel
Copy link
Member Author

The PyGMT team may wish to check what other modules modify input. I do not think we will rewrite all modules to internally do this though, in that case simpler to pass the DUPLICATE flag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Boring but important stuff for the core devs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants