-
Notifications
You must be signed in to change notification settings - Fork 228
Better handling of optional virtual files (e.g., shading in Figure.grdimage) #2493
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 45 commits
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
71c7e01
Better handling of optional virtual files (e.g., shading in Figure.gr…
seisman d477800
Fix data_kind function
seisman 5da11f1
Merge branch 'main' into optional-context
seisman 3ff29e4
Remove unused imports
seisman 5d60a5d
Use the new way in Figure.grdview
seisman 8f90cc1
Merge branch 'main' into optional-context
seisman ad48c4c
Change virtual file name back to fname
seisman f7f3d77
Remove unused imports from grdview.py
seisman 32c7303
Refactor the data_kind function
seisman 2bf8fbc
Fix data_kind
seisman 0e96906
Merge branch 'main' into optional-context
seisman a8c606d
Should check if a path is PurePath rather than Path
seisman c024577
Fix linting
seisman 29a2263
Fix data_kind function
seisman d0f5623
Merge branch 'main' into optional-context
seisman a2e87be
Merge branch 'main' into optional-context
seisman f27f7be
Fix linting
seisman d9f7b02
Merge branch 'main' into optional-context
seisman fddeb53
data_kind now returns 'null' for other cases
seisman 014eeb4
Disable a pylint warning
seisman a586a6e
grdview: Check if the given drapegrid is valid
seisman 442bf94
Merge branch 'main' into optional-context
seisman ea99d37
Merge branch 'main' into optional-context
seisman 57cc830
Merge branch 'main' into optional-context
seisman 9a43dc8
Combine file and null kinds into file_or_arg
seisman 08a51ef
Merge branch 'main' into optional-context
seisman 846bee6
Rename optional_data to required_data
seisman 46483e9
Fix the logical of check required_data
seisman 7a72d5d
Apply suggestions from code review
seisman 7164fcf
Merge branch 'main' into optional-context
seisman ab8f7b7
Merge branch 'main' into optional-context
seisman cc50a5c
Merge branch 'main' into optional-context
seisman 15aec70
Fix the logic in _validate_input_data
seisman 2fcd515
Fix grdimage
seisman 5faa05d
Change file_or_arg back to file
seisman 0433de9
Remove unecessary data check
seisman 4e0b021
Fix styling
seisman c6bc376
Fix
seisman cc02b96
One more fix
seisman f3df8fc
Fix a linting issue
seisman b74e9c6
Merge branch 'main' into optional-context
seisman a6b85e2
Merge branch 'main' into optional-context
seisman 83a6360
Fix the logic of checking kinds
seisman be93bd4
check_kind should never be None
seisman 73c31e2
Add more inline doctests for required_z
seisman e64b6af
Apply suggestions from code review
seisman b9d4f60
Update pygmt/helpers/utils.py
seisman 9b31e23
Check kind only if chekc_kind is not None
seisman 0ed6248
Improve the docstring of check_kind
seisman 6bc1e3c
Merge branch 'main' into optional-context
seisman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.