From ca6a2df929652a47aaa639eec7fc9a2ebfaa5805 Mon Sep 17 00:00:00 2001 From: Cail Daley Date: Tue, 21 Jul 2026 16:05:36 +0200 Subject: [PATCH] fix(residual-star-plot): read fourth-moment columns under HSM_M4_* grammar shapepipe PR CosmoStat/shapepipe#859 writes fourth moments as HSM_M4_{1,2}_{STAR,PSF}, following the HSM_ column grammar from CosmoStat/shapepipe#812. Update the four reads from the moment4-era names (M_4_STAR_1, ...), which now KeyError. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01K98geWHTuT62whqjKocfCm --- papers/catalog/2025_12_09_residual_star_plot.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/papers/catalog/2025_12_09_residual_star_plot.py b/papers/catalog/2025_12_09_residual_star_plot.py index 79e2f521..c5ab9bf0 100644 --- a/papers/catalog/2025_12_09_residual_star_plot.py +++ b/papers/catalog/2025_12_09_residual_star_plot.py @@ -33,10 +33,10 @@ e1_psf = cat_star["HSM_G1_PSF"] e2_psf = cat_star["HSM_G2_PSF"] T_psf = cat_star["HSM_T_PSF"] -M_4_1_star = cat_star["M_4_STAR_1"] -M_4_2_star = cat_star["M_4_STAR_2"] -M_4_1_psf = cat_star["M_4_PSF_1"] -M_4_2_psf = cat_star["M_4_PSF_2"] +M_4_1_star = cat_star["HSM_M4_1_STAR"] +M_4_2_star = cat_star["HSM_M4_2_STAR"] +M_4_1_psf = cat_star["HSM_M4_1_PSF"] +M_4_2_psf = cat_star["HSM_M4_2_PSF"] # %% histtype = "step"