You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Update parameter 'color' to 'fill' in examples and tutorials - #2201
Hmm. There seem to be some gallery examples left, which still use the parameter name color (with pygmt.Figure.plot). Or is this renaming split into two or multiple PRs? Probably also some renaming has to be done for the tutorials.
Hmm. There seem to be some gallery examples left, which still use the parameter name color (with pygmt.Figure.plot). Or is this renaming split into two or multiple PRs? Probably also some renaming has to be done for the tutorials.
Traceback (most recent call last):
File "/Users/runner/work/pygmt/pygmt/examples/gallery/lines/wiggle.py", line 22, in <module>
fig.wiggle(
File "/Users/runner/miniconda3/envs/pygmt/lib/python3.10/site-packages/pygmt/helpers/decorators.py", line 594, in new_module
return module_func(*args, **kwargs)
File "/Users/runner/miniconda3/envs/pygmt/lib/python3.10/site-packages/pygmt/helpers/decorators.py", line 734, in new_module
return module_func(*args, **kwargs)
File "/Users/runner/miniconda3/envs/pygmt/lib/python3.10/site-packages/pygmt/src/wiggle.py", line 105, in wiggle
module="wiggle", args=build_arg_string(kwargs, infile=fname)
File "/Users/runner/miniconda3/envs/pygmt/lib/python3.10/site-packages/pygmt/helpers/utils.py", line 212, in build_arg_string
raise GMTInvalidInput(f"Unrecognized parameter '{key}'.")
pygmt.exceptions.GMTInvalidInput: Unrecognized parameter 'fill'.
/Users/runner/work/pygmt/pygmt/examples/gallery/symbols/scatter.py failed leaving traceback:
Traceback (most recent call last):
File "/Users/runner/work/pygmt/pygmt/examples/gallery/symbols/scatter.py", line 36, in <module>
label=f"{color}+S0.25c",
NameError: name 'color' is not defined
/Users/runner/work/pygmt/pygmt/examples/gallery/symbols/bars.py failed leaving traceback:
Traceback (most recent call last):
File "/Users/runner/work/pygmt/pygmt/examples/gallery/symbols/bars.py", line 41, in <module>
fig.plot(x=1, y=2, style="b0.5c", fill=color, pen=pen)
NameError: name 'color' is not defined
Traceback (most recent call last):
File "/Users/runner/work/pygmt/pygmt/examples/gallery/lines/wiggle.py", line 22, in <module>
fig.wiggle(
File "/Users/runner/miniconda3/envs/pygmt/lib/python3.10/site-packages/pygmt/helpers/decorators.py", line 594, in new_module
return module_func(*args, **kwargs)
File "/Users/runner/miniconda3/envs/pygmt/lib/python3.10/site-packages/pygmt/helpers/decorators.py", line 734, in new_module
return module_func(*args, **kwargs)
File "/Users/runner/miniconda3/envs/pygmt/lib/python3.10/site-packages/pygmt/src/wiggle.py", line 105, in wiggle
module="wiggle", args=build_arg_string(kwargs, infile=fname)
File "/Users/runner/miniconda3/envs/pygmt/lib/python3.10/site-packages/pygmt/helpers/utils.py", line 212, in build_arg_string
raise GMTInvalidInput(f"Unrecognized parameter '{key}'.")
pygmt.exceptions.GMTInvalidInput: Unrecognized parameter 'fill'.
/Users/runner/work/pygmt/pygmt/examples/gallery/symbols/scatter.py failed leaving traceback:
Traceback (most recent call last):
File "/Users/runner/work/pygmt/pygmt/examples/gallery/symbols/scatter.py", line 36, in <module>
label=f"{color}+S0.25c",
NameError: name 'color' is not defined
/Users/runner/work/pygmt/pygmt/examples/gallery/symbols/bars.py failed leaving traceback:
Traceback (most recent call last):
File "/Users/runner/work/pygmt/pygmt/examples/gallery/symbols/bars.py", line 41, in <module>
fig.plot(x=1, y=2, style="b0.5c", fill=color, pen=pen)
NameError: name 'color' is not defined
To fix the warnings regarding Figure.wiggle, first #2205 needs to be merged.
Traceback (most recent call last):
File "/Users/runner/work/pygmt/pygmt/examples/gallery/lines/wiggle.py", line 22, in <module>
fig.wiggle(
File "/Users/runner/miniconda3/envs/pygmt/lib/python3.10/site-packages/pygmt/helpers/decorators.py", line 594, in new_module
return module_func(*args, **kwargs)
File "/Users/runner/miniconda3/envs/pygmt/lib/python3.10/site-packages/pygmt/helpers/decorators.py", line 734, in new_module
return module_func(*args, **kwargs)
File "/Users/runner/miniconda3/envs/pygmt/lib/python3.10/site-packages/pygmt/src/wiggle.py", line 105, in wiggle
module="wiggle", args=build_arg_string(kwargs, infile=fname)
File "/Users/runner/miniconda3/envs/pygmt/lib/python3.10/site-packages/pygmt/helpers/utils.py", line 212, in build_arg_string
raise GMTInvalidInput(f"Unrecognized parameter '{key}'.")
pygmt.exceptions.GMTInvalidInput: Unrecognized parameter 'fill'.
/Users/runner/work/pygmt/pygmt/examples/gallery/symbols/scatter.py failed leaving traceback:
Traceback (most recent call last):
File "/Users/runner/work/pygmt/pygmt/examples/gallery/symbols/scatter.py", line 36, in <module>
label=f"{color}+S0.25c",
NameError: name 'color' is not defined
/Users/runner/work/pygmt/pygmt/examples/gallery/symbols/bars.py failed leaving traceback:
Traceback (most recent call last):
File "/Users/runner/work/pygmt/pygmt/examples/gallery/symbols/bars.py", line 41, in <module>
fig.plot(x=1, y=2, style="b0.5c", fill=color, pen=pen)
NameError: name 'color' is not defined
To fix the warnings regarding Figure.wiggle, first #2205 needs to be merged.
I think you can revert the changes for Figure.wiggle and Figure.velo, and make the changes in PR #2205 and #2206 instead.
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
maintenanceBoring but important stuff for the core devsskip-changelogSkip adding Pull Request to changelog
4 participants
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.
Addresses #1617
Description of proposed changes
Fixes #
Reminders
make formatandmake checkto make sure the code follows the style guide.doc/api/index.rst.Slash Commands
You can write slash commands (
/command) in the first line of a comment to performspecific operations. Supported slash commands are:
/format: automatically format and lint the code/test-gmt-dev: run full tests on the latest GMT development version