Skip to content
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

Correctly compute contour length for wrapped contours #6102

Merged
merged 1 commit into from
Dec 11, 2021

Conversation

PaulWessel
Copy link
Member

Contours split across periodic boundaries will have jumps across the map. These are not drawn, but the code used them in computing the length which affects how many ticks are set. This corrects the contour length calculations. Here is an example of before (see the lower right side):

before

This is after the fix:

after

No tests were affected since we rarely place lots of ticks on contours.

COntours split across periodic boundaries will have jumps across the map.  These are not drawn, but the code used them in computing the length which affects how many ticks are set.  This corrects the contour length calculations.
@PaulWessel PaulWessel added the bug Something isn't working label Dec 9, 2021
@PaulWessel PaulWessel self-assigned this Dec 9, 2021
@PaulWessel PaulWessel requested a review from joa-quim December 9, 2021 22:58
@PaulWessel
Copy link
Member Author

Note this fix is not related to the problems in #6083 hence I made a separate PR. This one is benign in that it fixes a long-standing issue not revealed by our tests. Once this is merged and #6083 is fixed we will add a test that exercise these two issues.

@Esteban82
Copy link
Member

Esteban82 commented Dec 11, 2021

@PaulWessel What script do you use for the figure?

Copy link
Member

@Esteban82 Esteban82 left a comment

Choose a reason for hiding this comment

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

I try it with the script in #6080 (comparing master from contour-lenghts-fix).

@PaulWessel PaulWessel merged commit a81bd3c into master Dec 11, 2021
@PaulWessel PaulWessel deleted the contour-lengths-fix branch December 11, 2021 03:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants