-
Notifications
You must be signed in to change notification settings - Fork 220
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
Rename API function Session.open_virtual_file to Session.open_virtualfile (remove in v0.15.0) #2996
Conversation
…(will be removed in v0.15.0)
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.
Only a couple of minor suggestions.
pygmt/clib/session.py
Outdated
Examples | ||
-------- |
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.
Is a doctest actually needed for the old open_virtual_file
method? Or can we just omit it?
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.
Just want to make sure that the old function name still works as expected. But I'm OK with removing it, since it's a very simple wrapper.
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.
Removed in 9fcff9c.
Description of proposed changes
The GMT API function name is
GMT_Open_VirtualFile
, so the Python wrapper should beopen_virtualfile
rather thanopen_virtual_file
. We also usevirtualfile_from_vectors/matrix/grid
rather thanvirtual_file_from_vectors/matrix/grid
.The API function
Session.open_virtual_file
has been renamed toSession.open_virtualfile
in a backward-compatible way and will be fully removed in v0.15.0 (four minor releases which is about one year). A warning will be raised if anyone uses the old function name.xref: https://docs.generic-mapping-tools.org/dev/devdocs/api.html#list-of-api-functions