You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: reconcile pr7-lineage SACC callers with guarded sacc_io API
The feat/sacc-3 merge brought the guard-era sacc_io whose save() now
requires a keyword-only `type={'data','mock'}` provenance tag (PRD #241
§4) and whose load() refuses unblinded `type='data'`. Application code and
tests from the pr4/pr7 lineage still called the old `save(s, path)` and
referenced a template file the #236 cleanup had relocated, leaving 21 CI
failures outside the merge-conflict set. This adapts the callers to the
reviewed contract (sacc_io is unchanged).
save() type= threading:
- CosmologyValidation gains a `sacc_type` ctor kwarg (default "data"),
stamped by every part-writer: cosebis/pure_eb/psf_systematics/pseudo_cl
now `save(..., type=self.sacc_type)`.
- assemble_sacc inherits provenance from its parts: `type=metadata["type"]`.
- run_2pcf uses `cv.sacc_type`; run_2pcf_highres stamps "data" (real-catalogue
fine covariance).
- Synthetic-data tests adopt the reviewed idiom `type="mock"` (loads freely):
test_sacc_writers _roundtrip + reload helper, test_assemble_sacc part writer,
and the test_pseudo_cl fixture (`sacc_type="mock"`).
Relocated FITS engine template:
- The #236 folder cleanup moved cosmosis_pipeline_A_ia.ini into
cosmosis_config/templates/ (still used by the legacy cosmosis_fitting.py
path). The new pr7 Snakemake regime — inference.smk's INFERENCE_TEMPLATE_DIR,
generate_inference_config, and its tests — resolves templates from
cosmosis_config/ directly, where pr7 placed A_ia_sacc.ini but never copied
its FITS sibling. Restore A_ia.ini alongside the sacc template.
Fast suite: 254 passed, 1 skipped. Two remaining failures
(test_calculate_pure_eb pinned-value drift; test_configured_paths_exist_on_candide)
are pre-existing and environmental — they fail identically with these changes
stashed, and neither is in the API-drift set.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01766vawzi2XqrgoyHmeHEY9
0 commit comments