-
Notifications
You must be signed in to change notification settings - Fork 229
Improve the docstrings for the GMT_Open_VirtualFile wrapper #2408
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
2befba7
to
dbc518b
Compare
) | ||
from pygmt.helpers import data_kind, dummy_context, fmt_docstring, tempfile_from_geojson | ||
|
||
FAMILIES = [ |
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.
Added GMT_IS_IMAGE
, GMT_IS_POSTSCRIPT
and GMT_IS_CUBE
although they're not used now, but they will be used in the future.
"GMT_IS_POLYGON", | ||
"GMT_IS_PLP", | ||
"GMT_IS_SURFACE", | ||
"GMT_IS_NONE", # items without geometry (e.g., CPT) |
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.
Added GMT_IS_LP
and GMT_IS_VOLUME
which were missing.
The ctypes void pointer to your GMT data structure. | ||
``"GMT_IS_REFERENCE"`` to tell GMT the data are read-only, or | ||
``"GMT_IS_DUPLICATE"`` to tell GMT to duplicate the data. | ||
data : int or None |
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.
Co-authored-by: Michael Grund <[email protected]>
Description of proposed changes
Almost no code changes. Just add more comments and docstrings to make the code easier to understand.
References:
Fixes #
Reminders
make format
andmake check
to make sure the code follows the style guide.doc/api/index.rst
.Slash Commands
You can write slash commands (
/command
) in the first line of a comment to performspecific operations. Supported slash commands are:
/format
: automatically format and lint the code/test-gmt-dev
: run full tests on the latest GMT development version