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 — BREAKING: Raise GMTTypeError exception for invalid types. Previously raise GMTInvalidInput by seisman · Pull Request #3999 · GenericMappingTools/pygmt Conversation
|
| File | Description |
|---|---|
| pygmt/exceptions.py | Added GMTTypeError subclass of TypeError for invalid input types |
| pygmt/src/x2sys_cross.py | Switched invalid-type error from GMTInvalidInput to GMTTypeError |
| pygmt/src/text.py | Updated array‐argument checks to raise GMTTypeError |
| pygmt/src/plot3d.py | Changed invalid‐array errors to raise GMTTypeError |
| pygmt/src/plot.py | Changed invalid‐array errors to raise GMTTypeError |
| pygmt/src/legend.py | Changed invalid‐type checks to raise GMTTypeError |
| pygmt/src/grdcut.py | Switched unsupported‐type error to GMTTypeError |
| pygmt/clib/session.py | Replaced several GMTInvalidInput raises with GMTTypeError, and updated docstrings |
| pygmt/tests/* | Updated tests to import and expect GMTTypeError instead of GMTInvalidInput |
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 an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Ping @GenericMappingTools/pygmt-maintainers for final reivews. I plan to merge in 48 hours. |
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 am fine with the changes, just a few minor suggestions and comments.
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 an error while loading. Please reload this page.
| raise GMTInvalidInput(msg) | ||
| raise GMTTypeError( | ||
| type(arg), | ||
| reason=f"Parameter {name!r} expects a scalar value or True.", |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
With "scalar value", we refer to a float, or?
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've changed it back to "single".
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Co-authored-by: Yvonne Fröhlich <[email protected]>
|
/format |
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.