-
Notifications
You must be signed in to change notification settings - Fork 229
Change test_makecpt.py to use colorbar instead of grdimage #1748
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
Conversation
Summary of changed imagesThis is an auto-generated report of images that have changed on the DVC remote
Image diff(s)Added images
Modified imagesReport last updated at commit 6394922 |
In most tests, we call Why not just call |
BTW, please change the PR title to "Change test_xxxx.py to use static_earth_relief". |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good after removing the region
pytest fixture.
Actually, I just noticed that this is used in |
@willschlitzer Still need to upload the new images to dvc, because names of these images have been changed in your last commit. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for updating these tests. I still would prefer if fixture_region()
were removed and test_makecpt_plot_points()
used a list as the argument type for region
, but it is only a suggestion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Recommend modifying the PR title to say something like "Change test_makecpt.py to use colorbar instead of grdimage", since static_earth_relief
isn't actually being used. Oh, and I second Meghan's suggestion to remove fixture_region
if possible.
Co-authored-by: Wei Ji <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me after this minor fix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work!
…ppingTools#1748) Co-authored-by: Wei Ji <[email protected]> Co-authored-by: Dongdong Tian <[email protected]>
This modifies
test_makecpt.py
to useload_static_earth_relief
.Addresses #1684
Reminders
make format
andmake check
to 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