Generic pipeline stage 1, and state files a cold session can resume from #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "generic-pipeline"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Two things: stage 1 of the generic pipeline, and resumable state
Stage 1 - session discovery and ingest
The existing scripts parse filenames, expecting
calibrated-T32-...-Luminance-BIN2-W-300-001.fit. That works for one telescope, one binning and one exposure length. Three of the four archived sessions have no luminance channel at all, so the approach could not survive contact with the archive.pipeline/session.pyreads headers instead — FILTER, EXPTIME, XBINNING, OBJECT, DATE-OBS — groups frames by filter, and derives the colour scheme from what is present: LRGB, RGB without luminance, SHO, HOO or mono.Three defects were found by running it against the real archive rather than by reasoning about it:
calibrated-andraw-)CALSTATas a header-level safety netsomething.fit; anything trusting an extension opens a directory as a frameraw/Two T20 archives are genuinely corrupt and cannot be extracted — real data loss, not a bug. That session has 14 of its 16 frames, and the warning is printed rather than swallowed.
NGC 5128 now scans as exactly 12/4/4/4, matching the session processed by hand, which makes it a usable regression test for everything that follows.
Resumable state
A long session had left most of the current position in the chat rather than the repo.
RESUME HEREblock: the three live strands, the three decisions waiting on the user, and the one thing that will break the batch run if forgotten — NGC 6744 mixes bin1 luminance at 4096² with bin2 colour at 2048², so registration must resample onto a common grid. Nothing else in the archive does that, which is precisely why it will be forgotten.Both of this session's own errors are recorded as things not to repeat: measuring a foreground star instead of the galaxy nucleus and booking telescope time to fix it, and telling the user NGC 6744 had not been processed when it had.
Not done
Batch processing is blocked on disk space — C: has ~2.6 GB free against a 14 GB archive. Recorded in TODO rather than worked around.