Skip to content

The gmtlib_validate_id function stepped on another object's family#5100

Merged
PaulWessel merged 2 commits intomasterfrom
gmtlib_validate_id-fix
Apr 5, 2021
Merged

The gmtlib_validate_id function stepped on another object's family#5100
PaulWessel merged 2 commits intomasterfrom
gmtlib_validate_id-fix

Conversation

@PaulWessel
Copy link
Member

How rude! Nasty business, such squabbles. The if-tests in gmtlib_validate_id were incorrect and we ended up changing a grid object's type to dataset because its actual family was matrix. But that should only happen if the stated family is neither grid nor image.

This PR should fix the PyGMT problem reported here; please check and then approve if fixed.

Nasty business, such squabbles.  The if-tests were incorrect and we ended up changing a grid objects type to dataset because its actual family was matrix.  But that should only happen if the stated family is not grid nor image.
@PaulWessel PaulWessel added this to the 6.2.0 milestone Apr 5, 2021
@PaulWessel PaulWessel self-assigned this Apr 5, 2021
Copy link
Member

@seisman seisman left a comment

Choose a reason for hiding this comment

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

I can confirm that it fixes GenericMappingTools/pygmt#1177

@PaulWessel
Copy link
Member Author

A small step for a man, a giant leap for ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants