Skip to content

Run-2 planning: rule-defined tile list, HEALPix ownership with closure, per-pixel source lists, star-row keys - #991

Open
cailmdaley wants to merge 8 commits into
developfrom
feat/run2-planning
Open

cailmdaley wants to merge 8 commits into
developfrom
feat/run2-planning

Conversation

@cailmdaley

Copy link
Copy Markdown
Contributor

Run-2 planning (#986): one rule-defined tile list, HEALPix ownership with closure, fixed per-pixel source lists, and unique star-row keys.
This is the first of two stacked PRs; the second (#987) builds and publishes the order-5 HATS pixels from what this one plans.

What changes

  • Tile universe by rule (workflow/scripts/tile_universe.py, decision survey_publication.tile_universe).
    For tile x.y with dec = y/2 − 90, a tile is excluded when y ≥ 345 or x ≥ 720 cos(dec).
    On the 23,114-tile DR6 list this leaves 22,885 tiles: it removes the 181 cap and 32 dateline tiles of Drop the #900 dateline and high-Dec tiles from the DR6 r tile list #969, plus 16 dateline tiles that straddle RA 360° and were not on the Exclude the redundant dateline tiles and high-Dec tiles from the DR6 shape catalogue #900 list.
    The Snakefile refuses a data campaign whose tile list contains an excluded tile (image simulations are exempt).
  • Pixel lists (pixel_lists.py, pixel_completeness).
    pixel_tiles.csv lists, for each order-5 pixel, every tile whose 0.4° cap touches it.
    pixel_exposures.csv lists the exposures used by those tiles.
    A tile with no prepared exposure association is an error, never an empty list.
  • Ownership and closure (claims.py, seam_realization).
    Nibi and Fir own order-2 cells.
    claims.py initial grows block-first at a 40:60 pace and stops at 60% of tiles, leaving the rest of the cells for claims.py propose.
    claims.py closure gives one cluster every tile touching its pixels, and the exposures those tiles use.
    A claim is a commit to the shared claims file, and a rejected push is the lock; the script never runs git.
  • Star-row keys.
    The PSF-validation star rows gain EXP_ID (string, so leading zeros survive) and SOURCE_ORDINAL alongside CCD_NB, so (EXP_ID, CCD_NB, SOURCE_ORDINAL) is unique; both star merges fill them for older files.

astra.yaml gains the survey_publication sub-analysis.
Its first three decisions (tile_universe, seam_realization, pixel_completeness) are tagged at the sites above and pinned in universes/committed.yaml; #987 adds row_partitioning.

Figures

Ownership at the default 60% start and at the full 40:60 split, computed with this branch's claims.py on the 22,885-tile list.
Red circles are tiles run on both clusters: 67 at the start and 328 at the full split (1.4% of tiles).
The design estimate of 243 used sampled image footprints; the 0.4° cap is deliberately a superset, so this PR uses caps.

claims

The RA 360° wrap.
Left: tile centres; the rule excludes the orange tiles and the 16 straddling tiles in pink.
Right: run-1 galaxy rows per order-6 pixel for Dec 24–36°, before and after removing the excluded tiles' rows (519,297 of 24.5M rows in this band).
After removal the RA 0.5° bin is still 16.5% above its neighbours.
I read this as ordinary tile overlap, not measured directly: the last tile column before 360° sits an arbitrary 0–0.58° from the x = 0 column, so the two overlap more than the usual ~4%, and sp_validation's own-box cut removes it as it does everywhere else.

wrap

The 0.4° cap encloses every row: across 75 real tiles, the farthest row from its tile centre is 0.361–0.365°.

caps

Checks

Each contract has a test, and each test was seen to fail under the failure it guards against:

Contract Test Injection that fails it
tile-universe-by-rule rule reproduces the 22,885 / 229 reference split; batch refuses an excluded tile; no order-5 pixel touched by an excluded dateline tile is lost (measured: 0 of 18) drop the exclusion check
tile-cap-encloses-rows real tile rows lie within 0.4° of their centre cap 0.3°
exposure-list-covers-stars every star row of exposure e lies in a pixel whose list contains e empty exposure list
one-owner-per-pixel validator rejects a cell claimed twice drop the duplicate check
star-key-unique keys unique through both merge writers omit EXP_ID

174 tests pass and 1 is skipped (tests/unit/test_decisions.py, the new test_run2_* and star-catalogue tests, tests/workflow), run inside the develop image; astra-tools validate passes.

Two diffs are larger than they look.
tests/fixtures/run2/included_reference.txt is the 22,901-line run-1 tile list that the rule test is checked against.
tests/workflow/params_pin*.json change because the workflow fixtures now use valid data tile IDs; no rule parameter changed.

— Claude (Opus 5.5) on behalf of Cail

Closes #986.

🤖 Generated with Claude Code

https://claude.ai/code/session_01JK7o9DiztKSbcdLjwXNWmh

cailmdaley and others added 8 commits October 29, 2026 21:00
Records tile_universe, seam_realization and pixel_completeness (#986);
implementing sites follow in this branch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JK7o9DiztKSbcdLjwXNWmh
Co-Authored-By: GPT (via confer) <noreply@openai.com>
Co-Authored-By: GPT (via confer) <noreply@openai.com>
Co-Authored-By: GPT (via confer) <noreply@openai.com>
Co-Authored-By: GPT (via confer) <noreply@openai.com>
Refresh fixture-derived parameter pins for the changed test tile IDs.

Co-Authored-By: GPT (via confer) <noreply@openai.com>
Co-Authored-By: GPT (via confer) <noreply@openai.com>
Co-Authored-By: GPT (via confer) <noreply@openai.com>

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.

Run 2: plan tiles by HEALPix ownership with closure, from one rule-defined tile list

1 participant