Check if structure exist before accessing its members#3512
Merged
Conversation
Hopefull fixes #3473
Member
|
This PR works well for PyGMT, but now there are two new failing tests: These two tests also fail on the master branch but they're not related to grdimage: |
seisman
approved these changes
Jun 21, 2020
Member
Author
|
Will check once done with another branch (... the cpt solution). |
Member
Author
|
Did your problem go away? I am just getting the two gdal_nn.sh and grdimage_img_tif.sh failures for master. |
Member
|
They're still failing for master. |
Member
|
After running the two failing tests, I have these two files in
|
Member
|
Perhaps something wrong with my GDAL. I download a tile directly from the GMT server: The md5sum of the tile is the same as the one in the GMT server: But gdalinfo doesn't recognize the tile: |
Member
|
I mistakenly used the gdalinfo from macports (without openjpeg support). Now all tests pass. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hopefully fixes #3510. Let me know @seisman.