Skip to content

Conversation

@Chuan1937
Copy link
Contributor

I tried again, however, unlike before, I was able to download the dvc files during this local test, so I used the results from the master branch for the test.

Fixes #8009

Copilot AI review requested due to automatic review settings January 9, 2026 13:19
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a bug in the psmeca module where the function failed when the P (pressure) and T (tension) axes have equal dips. The fix modifies the logic in the meca_axe2dc function to properly handle the edge case of equal dips while excluding the strike-slip fault case.

Key changes:

  • Enhanced conditional logic to detect when P and T axes have equal dips (within tolerance)
  • Added special handling to exclude strike-slip faults where both dips are near zero
  • Added explanatory comments documenting the logic

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Member

@joa-quim joa-quim left a comment

Choose a reason for hiding this comment

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

CI continue a incomprehensible disaster. Run the tests locally and and all seem fine. Two points though:

  • We use C comments, not C++ (Copilot invention)
  • What about a new test for this case?

@joa-quim joa-quim requested a review from a team January 9, 2026 23:55
@seisman
Copy link
Member

seisman commented Jan 10, 2026

Looks good. Could you please add a test for it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gmt meca -Sy plots incorrectly - swapped quadrants when P and T dips are equal.

3 participants