Skip to content

Release 0.2.1: cs_util.size#67

Merged
cailmdaley merged 10 commits into
mainfrom
develop
Jun 10, 2026
Merged

Release 0.2.1: cs_util.size#67
cailmdaley merged 10 commits into
mainfrom
develop

Conversation

@cailmdaley

Copy link
Copy Markdown
Collaborator

Brings develop into main for the 0.2.1 release: the new cs_util.size module (#65) plus the version bump (#66). Tagging v0.2.1 after merge triggers the PyPI publish workflow.

— Claude on behalf of Cail

martinkilbinger and others added 10 commits February 25, 2026 16:05
…FWHM)

Single source of truth for the size conversions used across the
UNIONS / ShapePipe stack, so producers (ShapePipe ngmix writer) and
consumers (sp_validation) stop re-deriving the factors locally:

    T = 2 sigma^2            (ngmix / DES area parameter)
    r50 = sqrt(2 ln 2) sigma (half-light radius, the primary size in
                              the UNIONS shape-catalogue papers)
    FWHM = 2 sqrt(2 ln 2) sigma

Primitives (T <-> sigma, sigma <-> r50, sigma <-> fwhm) plus the
composites consumers actually call (T_to_r50, r50_to_T, T_to_fwhm).
T_to_fwhm in particular replaces a dimensionally wrong local version in
sp_validation (T / 1.17741 * 2.355, which treats the area T as if it
were already sigma); here the area-to-length conversion carries the
required square root.

Constants are exact (sqrt(2 ln 2), 2 sqrt(2 ln 2)) rather than the
truncated 1.1774 / 2.355 literals. Tests cover closed forms, unit-sigma
values, round trips, FWHM = 2 r50, and array input.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
feat: size module — Gaussian size-conversion web (T, sigma, r50, FWHM)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@cailmdaley cailmdaley merged commit d9907a0 into main Jun 10, 2026
1 check passed
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.

2 participants