From f6f61d027ca46130e75c2c10ce6c2da9b66042c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Agn=C3=A8s=20Fert=C3=A9?= Date: Mon, 8 Jan 2024 07:46:31 -0800 Subject: [PATCH] Update xlens module. --- modules_desy6/add_xlens_2pt.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/modules_desy6/add_xlens_2pt.py b/modules_desy6/add_xlens_2pt.py index f0cb5fba..ce84564d 100644 --- a/modules_desy6/add_xlens_2pt.py +++ b/modules_desy6/add_xlens_2pt.py @@ -15,12 +15,11 @@ def execute(block, config): xlens_val = block[x_section, 'xlens_all'] - for i in range(1,6): - for j in range(1,4): - if j >= i: - ggl_bin_label = 'bin_'+str(i)+'_'+str(j) - ggl = block['galaxy_shear_xi',ggl_bin_label] - ggl_xlens = xlens_val*ggl - block['galaxy_shear_xi', ggl_bin_label] = ggl_xlens + for i in range(1,6+1): + for j in range(1,4+1): + ggl_bin_label = 'bin_'+str(i)+'_'+str(j) + ggl = block['galaxy_shear_xi',ggl_bin_label] + ggl_xlens = xlens_val*ggl + block['galaxy_shear_xi', ggl_bin_label] = ggl_xlens return 0