Skip to content

Add --robust CLI flag to select the robust alpha-beta fit - #93

Open
AstroEloy wants to merge 1 commit into
wmpg:masterfrom
AstroEloy:alphabeta-cli-robust-flag
Open

AstroEloy wants to merge 1 commit into
wmpg:masterfrom
AstroEloy:alphabeta-cli-robust-flag

Conversation

@AstroEloy

Copy link
Copy Markdown
Contributor

Summary

  • fitAlphaBeta(method='robust') was previously unreachable from the AlphaBeta.py CLI:
    the only path into it was -e/--errors, which needs the robust fit because it is the
    only method that produces a covariance.
  • Adds -r/--robust so the robust velocity-residual fit can be selected on its own,
    without asking for the full error estimation.
  • Clarifies in --errors' help that it always uses the robust fit, and notes in --robust's
    help that --errors implies it.

No change to fitAlphaBeta() itself — CLI wiring only, default behaviour (Q4) unchanged.

Test plan

  • python -m wmpl.Utils.AlphaBeta --help shows both flags with the corrected help text
  • python -m wmpl.Utils.AlphaBeta <traj.pickle> -r on a real trajectory pickle gives the
    same alpha/beta as -e (minus the uncertainties)

🤖 Generated with [Claude Code]

Until now method='robust' was only reachable via --errors, which needs it
for the covariance. --robust selects it on its own; --errors still implies
it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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