Skip to content

Support phase weights and optional hand inversion - #360

Draft
tjlane wants to merge 1 commit into
codex/phase-alignment-09-align-apifrom
codex/phase-alignment-10-alignment-options
Draft

Support phase weights and optional hand inversion#360
tjlane wants to merge 1 commit into
codex/phase-alignment-09-align-apifrom
codex/phase-alignment-10-alignment-options

Conversation

@tjlane

@tjlane tjlane commented Aug 22, 2026

Copy link
Copy Markdown
Member

! This PR was vibe-coded.

Stack

Part 10 of 11 for #31. Depends on #359. Merge bottom-up.

Final PR: #349.

What this implements

Extends align_phases() with amplitude-product or explicit uniform weighting, paired Weight-typed FOM columns, intensity-to-amplitude conversion, and opt-in hand inversion. Hand search remains off by default and separate from proper reindexing.

When hand inversion or an origin shift is selected, all Phase and complex columns are transformed consistently in the returned copy.

Tests

Tests cover FOM multiplication and range checks, paired FOM keys, intensity equivalence, opt-in hand selection, complex-column recovery, and the default proper-hand behavior.

Reviewer focus

  • Whether amplitude-product weighting is the right default and uniform weighting is a clear opt-out.
  • The strict paired-FOM contract and probability bounds.
  • Separation of hand inversion from proper reindexing and consistent complex transforms.

Related: #31 and #174.

@tjlane tjlane changed the title Add phase weighting and hand options Support phase weights and optional hand inversion Aug 24, 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.

1 participant