Skip to content

Figure.directional_rose/Figure.magnetic_rose: Fix compatibility with upcoming GMT 6.7.0#4729

Open
seisman wants to merge 4 commits into
mainfrom
fix/direction_magnetic
Open

Figure.directional_rose/Figure.magnetic_rose: Fix compatibility with upcoming GMT 6.7.0#4729
seisman wants to merge 4 commits into
mainfrom
fix/direction_magnetic

Conversation

@seisman

@seisman seisman commented Jul 17, 2026

Copy link
Copy Markdown
Member

As shown in the GMT Dev Tests (https://github.com/GenericMappingTools/pygmt/actions/runs/29382671247/job/87249463921), calling Figure.directional_rose() and Figure.magnetic_rose() without any arguments don't work for GMT 6.7.0.

This is because for GMT 6.7.0, we set the default position to None, but in PyGMT, it means the -Td option is not specified, but actually we need -Td. We can either set default=True or simply always set the position parameter. This PR takes the 2nd option.

Patches #4702.

@seisman seisman added this to the 0.20.0 milestone Jul 17, 2026
@seisman seisman added bug Something isn't working run/test-gmt-dev Trigger the GMT Dev Tests workflow in PR labels Jul 17, 2026
@yvonnefroehlich

Copy link
Copy Markdown
Member

Hmm, as this is related to the upcoming GMT 6.7.0 version, is this a bug or a breaking change for PyGMT?

@seisman

seisman commented Jul 17, 2026

Copy link
Copy Markdown
Member Author

It's a bug

@seisman seisman added the needs review This PR has higher priority and needs review. label Jul 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working needs review This PR has higher priority and needs review. run/test-gmt-dev Trigger the GMT Dev Tests workflow in PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants