Skip to content

Conversation

seisman
Copy link
Member

@seisman seisman commented Mar 9, 2023

Description of proposed changes

Almost no code changes. Just add more comments and docstrings to make the code easier to understand.

References:

Fixes #

Reminders

  • Run make format and make check to make sure the code follows the style guide.
  • Add tests for new features or tests that would have caught the bug that you're fixing.
  • Add new public functions/methods/classes to doc/api/index.rst.
  • Write detailed docstrings for all functions/methods.
  • If wrapping a new module, open a 'Wrap new GMT module' issue and submit reasonably-sized PRs.
  • If adding new functionality, add an example to docstrings or tutorials.
  • Use underscores (not hyphens) in names of Python files and directories.

Slash Commands

You can write slash commands (/command) in the first line of a comment to perform
specific operations. Supported slash commands are:

  • /format: automatically format and lint the code
  • /test-gmt-dev: run full tests on the latest GMT development version

@seisman seisman added maintenance Boring but important stuff for the core devs skip-changelog Skip adding Pull Request to changelog labels Mar 9, 2023
@seisman seisman added this to the 0.9.0 milestone Mar 9, 2023
@seisman seisman force-pushed the improve-open-virtualfile branch from 2befba7 to dbc518b Compare March 9, 2023 10:43
)
from pygmt.helpers import data_kind, dummy_context, fmt_docstring, tempfile_from_geojson

FAMILIES = [
Copy link
Member Author

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)
Copy link
Member Author

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
Copy link
Member Author

Choose a reason for hiding this comment

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

@seisman seisman requested a review from weiji14 March 9, 2023 10:44
@seisman seisman added the final review call This PR requires final review and approval from a second reviewer label Mar 10, 2023
@seisman seisman merged commit 0b5a69b into main Mar 11, 2023
@seisman seisman deleted the improve-open-virtualfile branch March 11, 2023 14:04
@seisman seisman removed the final review call This PR requires final review and approval from a second reviewer label Mar 11, 2023
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 skip-changelog Skip adding Pull Request to changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants