Skip to content

refactor(make_cat): remove the dead galsim shape-serialization path#793

Open
cailmdaley wants to merge 1 commit into
developfrom
fix-783-remove-galsim-path
Open

refactor(make_cat): remove the dead galsim shape-serialization path#793
cailmdaley wants to merge 1 commit into
developfrom
fix-783-remove-galsim-path

Conversation

@cailmdaley

Copy link
Copy Markdown
Contributor

Removes the dead galsim shape-serialization path from make_cat. No runner produces galsim shapes (there is no galsim_shapes_runner), and the dual-shape (len==5) input branch in make_cat_runner never fires — ngmix is the pipeline's only shape estimator.

What changed

  • make_cat.py — delete SaveCatalogue._save_galsim_shapes() and its "galsim" process mode; drop the now-orphaned cs_util.size import.
  • make_cat_runner.pySHAPE_MEASUREMENT_TYPE now validates against ngmix alone (raising otherwise); dead second-shape-catalogue (len==5) branch removed. The list knob is retained as the extension point for a future estimator family.
  • tests — delete test_galsim_grammar_properties.py; drop the galsim cases from the frozen column-grammar examples in test_psf_grammar_properties.py (now covering ngmix + HSM).
  • docs/examples — lose the galsim references in the make_cat config-entry docstring, the config_make_cat_mccd.ini example, and the cat_matched.param comment.

Scope

Carved out of #761 (merged) per Axel's 2026-07-02 review to keep that PR scoped to the reconvolved-PSF column grammar; the removal deletes a test #761 introduced. The issue proposed retargeting to ngmix_v2.0 — but #741 has since merged ngmix_v2.0 into develop (and deleted the branch), so this targets develop. Cleanup, not a v2.0 correctness fix. Filed under the longer-term-improvements epic (#773).

Tests

test_psf_grammar_properties.py + test_make_cat.py — 28 passed (run in the ngmix v2.0 dev container).

Closes #783

🤖 Generated with Claude Code

— Claude (Opus) on behalf of Cail

No runner produces galsim shapes (there is no galsim_shapes_runner) and
the dual-shape (len==5) input branch in make_cat_runner never fires —
ngmix is the pipeline's only shape estimator, so the galsim serialization
path was dead code.

- delete SaveCatalogue._save_galsim_shapes and its "galsim" process mode
  (drops the now-orphaned cs_util.size import from make_cat)
- make_cat_runner validates SHAPE_MEASUREMENT_TYPE against ngmix alone and
  drops the dead second-shape-catalogue branch; the list knob is kept as
  the extension point for a future estimator family
- drop test_galsim_grammar_properties.py and the galsim cases from the
  frozen column-grammar examples in test_psf_grammar_properties.py
- lose the galsim references in the make_cat docstring, the make_cat_mccd
  example config, and the cat_matched.param comment

Carved out of #761 to keep that PR scoped to the reconvolved-PSF column
grammar; the removal deletes a test #761 introduced.

Closes #783

Co-Authored-By: Claude <noreply@anthropic.com>
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.

make_cat: remove the dead galsim shape-serialization path

1 participant