Skip to content

fake_psf: map SKiLLS PSF-dict HSM keys to the schema make_cat reads - #961

Open
cailmdaley wants to merge 1 commit into
developfrom
fix/fake-psf-hsm-keys
Open

cailmdaley wants to merge 1 commit into
developfrom
fix/fake-psf-hsm-keys

Conversation

@cailmdaley

Copy link
Copy Markdown
Contributor

Image-sims runs crash in tile_make_cat with KeyError: 'HSM_FLAG_PSF' on every tile. fake_interp_runner copies the SKiLLS PSF dictionary's SHAPES (E1_PSF_HSM, E2_PSF_HSM, SIGMA_PSF_HSM, FLAG_PSF_HSM) into the galaxy-PSF file unchanged. make_cat reads the psfex_interp schema (HSM_G1_PSF, HSM_G2_PSF, HSM_T_PSF, HSM_FLAG_PSF).

fake_psf now translates each entry to that schema (T = 2σ² via cs_util.size.sigma_to_T) and passes through dicts already in it. The fourth-moment slots stay at their fill values. Found in the defect/blend A/B on candide: all 20 campaigns died at make_cat, and they were relaunched with this patch.

🤖 Generated with Claude Code

https://claude.ai/code/session_01UVhqfPu4QLCWtrVyvzm5yN

…ake_cat reads

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UVhqfPu4QLCWtrVyvzm5yN

This branch has not been deployed

No deployments
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