Skip to content

cleanup: code no job has called since the foundation's verbs, and its tests - #702

Merged
rusholme merged 1 commit into
mainfrom
cleanup/unreached-code
Dec 5, 2026
Merged

rusholme merged 1 commit into
mainfrom
cleanup/unreached-code

Conversation

@rusholme

@rusholme rusholme commented Dec 5, 2026 •

Copy link
Copy Markdown
Collaborator

Each function here had no caller in rapidpipe/, scripts/, modules/ or database/ since the run model was retired (2026-10-20); only its own unit tests reached it. They are removed with those tests (33 tests, about 1,150 lines). No job's behaviour changes.

  • rapidpipe/db/ids.py (new_ulid), the whole module.
  • Alerts assemble: locate_records, index_associations, batch_produce, BatchStats and their record types; alerts crossmatch: chip_ref_matches. The packet stage assembles each alert itself.
  • Statistics lightcurve: compute_radec_statistics, object_statistics, accumulate, csv_line. flux_statistics (the alert's per-filter block) stays. The module's header becomes ported-from: none; the package's header still names dev's files, so the drift report still watches them.
  • Crossmatch catalog: merges_line, astroobjects_line.
  • Load catalogs: read_joined_catalog, write_joined_table_inner_to_csv_file.
  • Spatial: compute_angular_separation, field_corners. index_to_radec is kept: it is the inverse that the object id's round-trip test needs.

Each module's docstring says what was ported from dev and that it is in the file's history, so a later need finds it.

Implements no rapid_docs page. (An earlier version of this description said system/alerts.md disagreed with the code; it does not. That section is the kept record of the retired alerts stage, under "The retired stage".)

🤖 Generated with Claude Code

… tests

Each of these had no caller in rapidpipe/, scripts/, modules/ or database/
since the run model was retired (2026-10-20); only its own unit tests
reached it. Removed with those tests, 33 in all:

- rapidpipe/db/ids.py (new_ulid), the whole module.
- alerts assemble: locate_records, index_associations, batch_produce,
  BatchStats and their record types; alerts crossmatch: chip_ref_matches.
  The packet stage assembles each alert itself.
- statistics lightcurve: compute_radec_statistics, object_statistics,
  accumulate, csv_line. flux_statistics, the alert's per-filter block,
  stays, and the module's header becomes ported-from: none; the package's
  header still names dev's files, so the drift report still watches them.
- crossmatch catalog: merges_line, astroobjects_line.
- load catalogs: read_joined_catalog, write_joined_table_inner_to_csv_file.
- spatial: compute_angular_separation, field_corners. index_to_radec is
  kept: it is the inverse the object id's round-trip test needs.

Each module's docstring says what was ported and that it is in the file's
history.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@rusholme
rusholme merged commit 352b884 into main Dec 5, 2026
5 checks passed
@rusholme
rusholme deleted the cleanup/unreached-code branch December 5, 2026 03:54
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