Repository navigation
Audit DR6 catalogue matching without adding a tile cut - #446
Merged
Merged
Conversation
cailmdaley
force-pushed
the
feat/dr6-match-quality
branch
from
October 30, 2026 02:13
979d595 to
cbf8764
Compare
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
marked this pull request as ready for review
November 14, 2026 18:06
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.
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-b0093ran 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_manifestslist 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.uniquebefore normalization.Where the decision went: a new
dr6_cataloguesub-analysis of the composed ASTRA project (scratch/cdaley/unions_astra/analyses/dr6_catalogue/astra.yaml, decisioncatalogue_match_tile_selection). It isn't incosmic_shear_2dor 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_cutby default; cuts at 0.98, 0.99 and 0.995, with their costs; rejecting warning tiles; masking unmatched positions), the revisit conditions, and the pinsMIN_EXTERNAL_PAIRED_FRACTION = None; mask_v2.0.yaml#N_EPOCH = 2.docs/catalogue-match-selection.mdkeeps only the evidence narrative and points to the record. The three@sctags cite it, and the pin test resolves the record through the root'sanalysesand 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 validatepasses 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), andcensus_figures.pydraws 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.