Skip to content

Figure.solar: Fix the baseline image for test_solar_terminators#4675

Merged
seisman merged 1 commit into
mainfrom
test/solar
Jun 12, 2026
Merged

Figure.solar: Fix the baseline image for test_solar_terminators#4675
seisman merged 1 commit into
mainfrom
test/solar

Conversation

@seisman

@seisman seisman commented Jun 12, 2026

Copy link
Copy Markdown
Member

test_solar_terminators is failing in the GMT Dev Tests workflow. It turns out the current baseline image is correct.

This PR updates the baseline image and marks the test as xfail for GMT<=6.6.0. This PR also simplifies the test a little bit.

The correctness of the new baseline image can be confirmed by comparing with
https://www.timeanddate.com/worldclock/sunearth.html?day=17&month=2&year=1990&hour=4&min=25&sec=00&n=%3A&ntxt=&earth=0

@seisman seisman added this to the 0.19.0 milestone Jun 12, 2026
@seisman seisman added maintenance Boring but important stuff for the core devs skip-changelog Skip adding Pull Request to changelog needs review This PR has higher priority and needs review. run/test-gmt-dev Trigger the GMT Dev Tests workflow in PR labels Jun 12, 2026
Comment thread pygmt/tests/test_solar.py
# TODO(GMT>6.6.0): Remove the xfail marker.
@pytest.mark.xfail(
condition=Version(__gmt_version__) <= Version("6.6.0"),
reason="Upstream bug fixed in https://github.com/GenericMappingTools/gmt/pull/8938",

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Actually I'm not sure if this bug was fixed by GenericMappingTools/gmt#8938

@github-actions

Copy link
Copy Markdown
Contributor

Summary of changed images

This is an auto-generated report of images that have changed on the DVC remote

Status Path
modified pygmt/tests/baseline/test_solar_terminators.png

Image diff(s)

Details

Added images

Modified images

Path Old New
test_solar_terminators.png

Report last updated at commit 5792ba1

@seisman seisman merged commit ff455b6 into main Jun 12, 2026
23 of 35 checks passed
@seisman seisman deleted the test/solar branch June 12, 2026 11:35
@seisman seisman removed needs review This PR has higher priority and needs review. run/test-gmt-dev Trigger the GMT Dev Tests workflow in PR labels Jun 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Boring but important stuff for the core devs skip-changelog Skip adding Pull Request to changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants