GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||
GeezerVison is showing github.com — Add placeholder codes for wrapping GMT_IMAGE/GMT_CUBE by seisman · Pull Request #3181 · GenericMappingTools/pygmt Conversation
|
| raise NotImplementedError(f"kind={kind} is not supported yet.") | ||
| dtype = {"dataset": _GMT_DATASET, "grid": _GMT_GRID}[kind] | ||
| dtype = { | ||
| "dataset": _GMT_DATASET, | ||
| "grid": _GMT_GRID, | ||
| "image": _GMT_IMAGE, | ||
| "cube": _GMT_CUBE, | ||
| }[kind] |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
If we merge this PR for PyGMT v0.12.0, then NotImplementedError won't be raised right?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Yes, but since it's a low-level API function, I guess users won't call it anyway and we maintainers should know what we're doing.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
But kind='image' and kind='cube' is showing up in the API docs at https://pygmt-dev--3181.org.readthedocs.build/en/3181/api/generated/pygmt.clib.Session.virtualfile_out.html. Can we push this PR to v0.13.0? There's no real benefit to users in having this merged anyway without GMT_IMAGE/GMT_CUBE being wrapped right?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Oh wait, that was the docs for virtualfile_out, I meant https://pygmt-dev--3181.org.readthedocs.build/en/3181/api/generated/pygmt.clib.Session.read_virtualfile.html
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I guess we can close this PR, since it's likely we will finish wrapping GMT_IMAGE first and then GMT_CUBE later, so we only need to deal with the conflicts in PR #3150.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.