Repository navigation
difference: dev's diffimmeta table, one row per difference job, with the quality gate's numbers - #698
Merged
Merged
Conversation
…the quality gate's numbers (decision-diffimmeta) schema.sql gains diffimmeta, dev's DiffImMeta (rapidOpsTables.sql) with its 12 columns by name and type and its indexes, the difference's job beside them, seven new nullable columns (n_xsources_read_positive, n_xsources_prefiltered, n_xsources_snr_gt20, usable_fraction, registration_offset, core_fraction, ring_fraction), and diffimmeta_official through the diffimages binding. The difference stage declares one row (diffimmeta_row): nsexcatsources the SFFT positive SExtractor catalog's rows, the gain match's values (dxrmsfin and dyrmsfin measured, where dev registers 0.0), hp6 and hp9 of the field's centre. database/2026-12-04- diffimmeta.sql brings an existing database to it; no row is backfilled. The publisher, validate_run.py and the schema diagram list the table. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e the prefilter (decision-diffimmeta) The positive and negative catalogs' rows summed, where dev counts the positive catalog alone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
RussLaher
requested review from
abostroem,
eramey16,
jjencson91 and
rusholme
as code owners
December 4, 2026 22:25
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.
Implements rapid_docs
decision-diffimmeta(Caltech-IPAC/rapid_docs#256:decisions.md,foundation.md,migration.md,difference.md).Change.
database/schema.sqlgainsdiffimmeta:dev's 12 DiffImMeta columns (rapidOpsTables.sql), keyed bypid, plusjob. It also gains seven nullable columns (n_xsources_read_positive,n_xsources_prefiltered,n_xsources_snr_gt20,usable_fraction,registration_offset,core_fraction,ring_fraction), their indexes, anddiffimmeta_officialthrough thediffimagesbinding.database/2026-12-04-diffimmeta.sqlbrings an existing database to the new schema, with no backfill. It is listed indatabase/README.md.rapidpipe/stages/difference.pydeclares one row per job (diffimmeta_row).nsexcatsourcesis the positive plus negative SFFT SExtractor rows before the prefilter;devcounts positive only.scalefacref,dxrmsfin,dyrmsfin,dxmedianfinanddymedianfinare stored as measured;dev's code registers 0.0 for the two RMS values.hp6andhp9are of the field's centre.validate_run.py, the schema diagram (regenerated) and AGENTS.md list the table.Reason. The migration dropped DiffImMeta with no recorded reason. The new columns give the quality gate's inputs in one row per difference. The gate itself still reads
job_metrics.Testing. All run locally (Python 3.14, PostgreSQL 17):
hp6andhp9for a field centred at RA 0, reached from RA 359.99 (the RA wrap check);schema.sql.tests/db/test_difference_job.py), and the schema test lists the table.main's schema at ced8ee2, it gives a schema dump identical to the newschema.sql(sorted comparison), writes no row, and fails on a freshschema.sql.tests/dbandtests/cli: 211 passed (test_publish_poolnot run, needs pgbouncer). Fulltests/unit: 1424 passed, 1 failed (test_run_job_workdir, which also fails on the unmodified baseline on macOS).check-public-safety.sh: clean.nsexcatsourceschange: the affected files were re-run (86 passed).Not tested: no real difference job has written a row, and the dated file has not been applied on SMDC.
🤖 Generated with Claude Code