From 97ebf95f2b78b8eaacce4cc670bfc5999cb34a1e Mon Sep 17 00:00:00 2001 From: Louis Thibaut Date: Fri, 15 Nov 2024 11:03:44 +0100 Subject: [PATCH] updates to the new leakage function --- .../python/montecarlo/mc_apply_syst_model.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/project/data_analysis/python/montecarlo/mc_apply_syst_model.py b/project/data_analysis/python/montecarlo/mc_apply_syst_model.py index b1e00dec..099a66c9 100644 --- a/project/data_analysis/python/montecarlo/mc_apply_syst_model.py +++ b/project/data_analysis/python/montecarlo/mc_apply_syst_model.py @@ -54,10 +54,13 @@ def get_beam_sim(mean, error_modes): name = f"{sv}_{ar}" log.info(f"reading leakage info {name}") gamma[name], err_m_gamma[name], var[name] = {}, {}, {} + l, gamma[name]["TE"], err_m_gamma[name]["TE"], gamma[name]["TB"], err_m_gamma[name]["TB"] = leakage.read_leakage_model(leakage_file_dir, - d[f"leakage_beam_{name}"][0], - lmax, - lmin=2) + d[f"leakage_beam_{name}_TE"][0], + d[f"leakage_beam_{name}_TB"][0], + lmax, + lmin=2) + cov = {} cov["TETE"] = leakage.error_modes_to_cov(err_m_gamma[name]["TE"])