Skip to content

astra: the record as ShapePipe's analysis, with run 1 as its baseline universe - #1007

Open
cailmdaley wants to merge 6 commits into
developfrom
astra/run1-studio
Open

cailmdaley wants to merge 6 commits into
developfrom
astra/run1-studio

Conversation

@cailmdaley

@cailmdaley cailmdaley commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

ShapePipe's scientific decision record is now an ASTRA 0.1 analysis, with run 1 as its baseline universe. Browse it in Lightcone Studio at https://unions-wl.github.io/shapepipe/studio/ (unlisted, noindex).

What's here

  • ASTRA 0.1 layout (astra.yaml + analyses/<stage>/astra.yaml). Six sub-analyses run in data order: masking → detection → star_selection_psf → preparation → shape_measurement → catalogue_assembly. The analysis ends at final_cat, star_catalogue, and coverage_maps. The downstream release catalogues and the four validation diagnostics (psf_residuals, rho_tau_statistics, galaxy_sample, shape_shifts) live in CosmoStat/sp_validation (PR removed unused entries from MCCD interpol config section #501), which declares this repository at a fixed commit and imports baseline_run1.
  • Inputs follow ASTRA RFC 0006. Committed files tracked in git (auxdir/CFIS/tiles_202604/tiles_r.txt and workflow/config.yaml) are root inputs:. External survey products fetched from CADC/VOSpace or the container registry (dr6_tile_stacks, unions_tile_catalogues, dr6_exposures, healsparse_masks, container_image) are root outputs: with fetch recipes.
  • Universes in astra.yaml. baseline_run1 records run 1 as it ran (the ten integration/smk-g17..g19 commits behind run1-snap3 pin the same option on all 55 decisions). committed derives from baseline_run1 and overrides the single decision that differs on develop, shape_measurement.defect_flagging (Tile-level defect flags: exposure IMAFLAGS_ISO and interpolated-defect epochs on each object's footprint #973). Develop's per-branch metacal errors (final_cat.param: keep per-branch NGMIX_G{1,2}_ERR #1003) are a column change outside the record.
  • Three PSF decisions recorded on their own because the run-1 data put them under pressure: psf_sampling (split out of psf_model_complexity; PSFEx native sampling leaves a g1 residual on sub-0.5″ exposures; PSF consumers assume PSF_SAMP = 1 #989, Tentative: PSFEx models ~0.4% larger than stars on P3 tiles (worth exploring) #956), psf_chromaticity (the model has no colour term; the r-band PSF does), and psf_rendering (psfex_interp returns the model's centred stamp, with no sub-pixel phase).
  • Decision-record tests (tests/helpers/decisions.py, tests/unit/test_decisions.py). Updated to expand path-declared sub-analyses and validate universes: entries with derived_from inheritance.

No pipeline behaviour change, and the Snakemake workflow in workflow/ is untouched (CLAUDE.md states Snakemake keeps running production until lc reproduces it).

Verification

  • astra validate --verify-evidence (astra-tools 0.3.0rc4): 0 errors, 0 warnings on root astra.yaml and all six sub-analyses (60/60 literature quotes verified).
  • pytest tests/unit/test_decisions.py tests/unit/test_decisions_diff.py: 75 passed.
  • Studio republished from the ASTRA 0.1 spec to https://unions-wl.github.io/shapepipe/studio/ (noindex).

— Gemini 4 Neon on behalf of Cail

cailmdaley and others added 5 commits November 21, 2026 19:26
…1 baseline

The record now reads as the pipeline's analysis:
- root inputs are the survey data run 1 read (DR6 tile stacks, tile
  catalogues, exposures with weights and flags, the tile list, the
  dr6-2026-09-29 mask ladder, the runtime image), with where each lives,
  its size and what consumes it;
- sub-analyses are in data order and wired by `from:`, so the graph runs
  from the inputs through masking, detection, star selection and PSF,
  preparation, shape measurement and assembly to a new `release` stage
  that points at run1-snap3 and v2.0.0 (its decisions are sp_validation's);
- universes/baseline_run1.yaml pins run 1 as it ran: the ten production
  commits agree on every decision, and run 1 differs from develop only in
  shape_measurement.defect_flagging (#973);
- three PSF decisions under data pressure are recorded on their own:
  psf_sampling (split out of psf_model_complexity, #989), psf_chromaticity
  and psf_rendering.

No behaviour change: tags are comments.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JK7o9DgyMMqdmBBf6gXL7h
…d the release wiring

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JK7o9DgyMMqdmBBf6gXL7h
…sion is judged by

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JK7o9DgyMMqdmBBf6gXL7h

This branch has not been deployed

No deployments
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.

1 participant