Skip to content

Audit DR6 catalogue matching without adding a tile cut - #446

Merged
cailmdaley merged 6 commits into
developfrom
feat/dr6-match-quality
Nov 14, 2026
Merged

cailmdaley merged 6 commits into
developfrom
feat/dr6-match-quality

Conversation

@cailmdaley

@cailmdaley cailmdaley commented Oct 30, 2026 •

Copy link
Copy Markdown
Collaborator

DR6 paired-fraction distribution
Catalogue quality comparison

Keep the DR6 external paired fraction diagnostic-only; apply no additional tile cut.
In 22,683 of the 22,901 run-1 tiles of the v2.0.0 release, all 18 below 98% pairing contribute zero selected galaxies under mask_v2.0.yaml (191,016,178 galaxies); the lowest-pairing tile that selects any is at 98.1%.
This depends on N_EPOCH >= 2: only 207.238 retains detections after that cut (three, then rejected by the fit requirements).
A 99% cut removes 675,307 selected galaxies (0.354% of the sample, 0.367% of its shear weight) in 198 tiles without a measured benefit.
Spatial plots, PSF diagnostics, per-tile measurements and the scripts give the evidence and limits.

The paired fraction is ShapePipe's catalogue rows over the DR6 external (PhotoPipe) catalogue rows, both from the v2.0.0 release provenance; on the 434 tiles also measured from manifests or logs, both counts agree exactly.
The 218 tiles without an external count on Fir carry 1,373,435 selected galaxies (0.72%) and are unmeasured.
Separately, the guard census covers actual logged failures.
Before #975, rejection required both >20 external-only objects and >2%; #975 adds a 50-object allowance, and published batches including fir-b0093 ran that code.
The retained Nibi logs and the Fir chair's exhaustive 285-tree scan reconcile 14 pairing rejections plus one empty-tile crash.
All 15 are published in latest, lie among the 18 tiles below 98%, and select zero galaxies; no observed rejection remains unmeasured.
No shear test is possible where no galaxies survive.

The optional catalogue_match_manifests list makes extraction write a per-tile CSV audit without filtering objects.
It distinguishes absent manifests, absent match metadata and measured empty catalogues; warnings use the published budget, and tile counts use np.unique before normalization.
Where the decision went: a new dr6_catalogue sub-analysis of the composed ASTRA project (scratch/cdaley/unions_astra/analyses/dr6_catalogue/astra.yaml, decision catalogue_match_tile_selection). It isn't in cosmic_shear_2d or the root, because those describe the v1.4.6.3 release, and placing it there would claim Paper III's ξ± depends on a DR6 cut. Other v2 catalogue-selection choices can join it.
The record holds the rationale, the options (no_cut by default; cuts at 0.98, 0.99 and 0.995, with their costs; rejecting warning tiles; masking unmatched positions), the revisit conditions, and the pins MIN_EXTERNAL_PAIRED_FRACTION = None; mask_v2.0.yaml#N_EPOCH = 2.
docs/catalogue-match-selection.md keeps only the evidence narrative and points to the record. The three @sc tags cite it, and the pin test resolves the record through the root's analyses and fails when the module constant, the config cut, the record pin or a tag changes (each mutation injected and observed). With astra-spec 0.0.10, as the project declares (astra-tools 0.2.9), astra validate passes on the root and on the sub-analysis.

Validation in the sp_validation container: 697 non-slow tests passed at 46e4bd8 (develop merged in), 18 focused tests passed, and Ruff passed. On develop 2badbcd, the real audit reads all 27 current manifests and 292,770 input objects.
The census reads the v2.0.0 comprehensive and calibrated catalogues on Fir; its per-tile selected counts match the release's tile accounting on every tile (26 galaxies carry no TILE_ID), and census_figures.py draws both plots from its output.
Cross-family review of the audit code is clean; the census has not had an independent review.
ShapePipe's rationale follow-up is #990, to merge after this PR.

Closes #444.

— GPT-6.1 Sol and Claude Opus on behalf of Cail.

@cailmdaley
cailmdaley force-pushed the feat/dr6-match-quality branch from 979d595 to cbf8764 Compare October 30, 2026 02:13
Cail Daley and others added 2 commits October 30, 2026 09:22
The no-cut decision on ShapePipe's external_paired_fraction moves from
docs/catalogue-match-selection.md into a new dr6_catalogue sub-analysis of
scratch/cdaley/unions_astra, which records selection of the ShapePipe v2
(DR6) catalogue. Papers II-IV consume v1.4.6.3, so none of their
sub-analyses is the home. The record carries the rationale, the cut and
warning/masking alternatives with their measured costs, the selected
no_cut option and the Values pins; the doc keeps the audit coverage and
tile-level evidence. The @sc tags cite
dr6_catalogue.catalogue_match_tile_selection, and the pin test resolves
that id through the composed project and checks the module constant,
the N_EPOCH cut and every tagged site against the record.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JK7o9FjcungfGYzSdkjy7z
@cailmdaley
cailmdaley marked this pull request as ready for review November 14, 2026 18:06
@cailmdaley
cailmdaley merged commit 1f9bb94 into develop Nov 14, 2026
4 checks 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.

Decide whether the catalogue cuts on ShapePipe's external_paired_fraction

2 participants