Skip to content

Fix Arc sep calculation for nearly antipodal points#194

Merged
rmjarvis merged 2 commits into
mainfrom
#193
Mar 18, 2026
Merged

Fix Arc sep calculation for nearly antipodal points#194
rmjarvis merged 2 commits into
mainfrom
#193

Conversation

@rmjarvis

Copy link
Copy Markdown
Owner

@Lhior reported a bug in the Arc metric, which manifested when a catalog has points that are more than 90 degrees apart. Then an arcsin calculation wrongly wrapped large angles back into smaller angles. When the catalog included multiple fields, including some that are nearly antipodal, this caused big problems. This PR fixes the issue by using atan2 instead.

@rmjarvis

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Breezy!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@rmjarvis rmjarvis merged commit 5893b1e into main Mar 18, 2026
12 checks passed
@rmjarvis rmjarvis deleted the #193 branch March 18, 2026 15:09
@rmjarvis rmjarvis added this to the Version 5.1 milestone Mar 18, 2026
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.

NGCorrelation changes accepted pairs when adding r and an inactive max_rpar for disjoint concatenated fields

1 participant