Skip to content

Commit

Permalink
Add xlens at the level of 2pt.
Browse files Browse the repository at this point in the history
  • Loading branch information
aferte committed Dec 8, 2023
1 parent 76c4b1b commit bde7ced
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions modules_desy6/add_xlens_2pt.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,25 @@
import numpy as np

def setup(options):
# Get the name of the bias section
bias_section = options.get_string(option_section, "bias_section", "bias_lens")
# Get the name of the xlens section
r_section = options.get_string(option_section,"r_section", "x_lens")

return bias_section, r_section
return bias_section, r_section


def execute(block, config):

r_section = config

rval = block[r_section, 'rmean_bin']


for i in range(1,6):
for j in range(1,6):
if j >= i:
ggl_bin_label = 'bin_'+str(i)+'_'+str(j)
ggl = block['galaxy_shear_xi',ggl_bin_label]
ggl_xlens = rval*ggl
block['galaxy_shear_xi', ggl_bin_label] = ggl_xlens

return 0

0 comments on commit bde7ced

Please sign in to comment.