Skip to content

Add fit_vz option to fit_annuli - #45

Merged
richteague merged 1 commit into
masterfrom
feat/fit-vz
Nov 24, 2026
Merged

richteague merged 1 commit into
masterfrom
feat/fit-vz

Conversation

@richteague

Copy link
Copy Markdown
Collaborator

Previously the constant SHO offset was always a free parameter, with
fix_vlsr only changing whether it was reported as vlsr or converted to
vz. fit_annuli and Annulus2D.get_vlos now take fit_vz (default False):

  • fix_vlsr=None: offset free, reported as vlsr (unchanged).
  • fix_vlsr set, fit_vz=True: offset free, converted to vz (the old
    fix_vlsr behaviour).
  • fix_vlsr set, fit_vz=False: vlsr held fixed in the fit, vz = 0.
  • fit_vz=True without fix_vlsr raises a ValueError.

Note that passing fix_vlsr alone now fixes vlsr rather than returning vz.

🤖 Generated with Claude Code

Previously the constant SHO offset was always a free parameter, with
fix_vlsr only changing whether it was reported as vlsr or converted to
vz. fit_annuli and Annulus2D.get_vlos now take fit_vz (default False):

- fix_vlsr=None: offset free, reported as vlsr (unchanged).
- fix_vlsr set, fit_vz=True: offset free, converted to vz (the old
  fix_vlsr behaviour).
- fix_vlsr set, fit_vz=False: vlsr held fixed in the fit, vz = 0.
- fit_vz=True without fix_vlsr raises a ValueError.

Note that passing fix_vlsr alone now fixes vlsr rather than returning vz.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@richteague
richteague merged commit 2398ca2 into master Nov 24, 2026
3 checks passed
@richteague
richteague deleted the feat/fit-vz branch November 25, 2026 14:55
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