Skip to content

Must check for label content before offsetting#6626

Merged
PaulWessel merged 5 commits intomasterfrom
fix-label-check
Apr 26, 2022
Merged

Must check for label content before offsetting#6626
PaulWessel merged 5 commits intomasterfrom
fix-label-check

Conversation

@PaulWessel
Copy link
Member

In the magnetic map rose case, we examine if there are labels to plot (hence we need to do more offsets) but that test was flawed. It checked if the pointer existed (it always does) instead of its content (may be empty).

This PR fixes that bug. It is related to the issues in #6213 but probably not the last word. That may be a mix of this bug (now fixed) and design decisions since the default offset still looks a wee bit too large?

In the magnetic map rose case, we examine if there are labels to plot (hence we need to do more offsets) but that test was flawed.  It checked if the pointer existed (it always does) insteaf of its content (may be empty).
@PaulWessel PaulWessel added the bug Something isn't working label Apr 26, 2022
@PaulWessel PaulWessel added this to the 6.4.0 milestone Apr 26, 2022
@PaulWessel PaulWessel requested a review from seisman April 26, 2022 10:34
@PaulWessel PaulWessel self-assigned this Apr 26, 2022
@PaulWessel
Copy link
Member Author

The same disease afflicted the directional rose offset calculation. I have also adjusted the amount of offset to be more suitable. This makes the mag_roses.sh file but I can fix that once you agree this is a better design.

@PaulWessel PaulWessel merged commit 6ab4811 into master Apr 26, 2022
@PaulWessel PaulWessel deleted the fix-label-check branch April 26, 2022 12:35
PaulWessel added a commit that referenced this pull request Apr 26, 2022
After doing the fixes in #6626.
PaulWessel added a commit that referenced this pull request Apr 26, 2022
After doing the fixes in #6626.
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