Release 0.2.1: cs_util.size#67
Merged
Merged
Conversation
skyproj not optional
…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>
chore: bump version to 0.2.1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Brings
developintomainfor the 0.2.1 release: the newcs_util.sizemodule (#65) plus the version bump (#66). Taggingv0.2.1after merge triggers the PyPI publish workflow.— Claude on behalf of Cail