Skip to content

IV gradient fix to main (v1.3.2)#303

Merged
achael merged 1 commit into
mainfrom
fix/iv-grad-main
Jun 15, 2026
Merged

IV gradient fix to main (v1.3.2)#303
achael merged 1 commit into
mainfrom
fix/iv-grad-main

Conversation

@rohandahale

@rohandahale rohandahale commented Jun 12, 2026

Copy link
Copy Markdown
Collaborator

Cherry-picks the IV (Stokes I+V) imaging gradient fix to main as a patch release, and bumps the version to 1.3.2.

chisqgrad_vvis / chisqgrad_vvis_nfft dropped the physical ρ-gradient for pol='IV' imaging (the vcv transform couples the V solver variable to both ρ and ψ, and the dominant dρ/dv' term was skipped). The V-angle gradient was ~99% wrong on released numpy IV imaging. Fix: compute the ρ-gradient whenever V is solved (pol_solve[1] or pol_solve[3]).

main is pre-refactor and has no tests/ infrastructure, so this is the 2-line source fix only. The FD regression test (test_iv_gradient_matches_finite_difference) lives on the refactored branches.

Same fix already merged to dev (#296), dev-backend (#299), and dev-backend-mixpol (#300); FD-validated there (analytic vs central differences, median ~3e-10 after vs ~99% wrong before). This completes the cascade to main.

Bumps pyproject.toml version + download URL 1.3.1 → 1.3.2. Ready for tagging.

@rohandahale rohandahale changed the title Cherry-pick IV gradient fix to main (v1.3.2) IV gradient fix to main (v1.3.2) Jun 12, 2026
@rohandahale rohandahale marked this pull request as ready for review June 12, 2026 21:18
@rohandahale rohandahale requested a review from achael June 12, 2026 21:19
@rohandahale rohandahale self-assigned this Jun 12, 2026
@rohandahale rohandahale added this to the 2.0 milestone Jun 12, 2026

@achael achael left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

looks good

@achael achael merged commit c7ff984 into main Jun 15, 2026
1 check passed
@achael achael deleted the fix/iv-grad-main branch June 16, 2026 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants