Skip to content

Commit

Permalink
Update xlens module.
Browse files Browse the repository at this point in the history
  • Loading branch information
aferte committed Dec 11, 2023
1 parent bde7ced commit d426b80
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 70 deletions.
12 changes: 6 additions & 6 deletions modules_desy6/add_xlens_2pt.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,24 @@

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

return bias_section, r_section
return x_section


def execute(block, config):

r_section = config
x_section = config

rval = block[r_section, 'rmean_bin']
xlens_val = block[x_section, 'xlens_all']


for i in range(1,6):
for j 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 = rval*ggl
ggl_xlens = xlens_val*ggl
block['galaxy_shear_xi', ggl_bin_label] = ggl_xlens

return 0
32 changes: 0 additions & 32 deletions modules_desy6/put_xlens.py

This file was deleted.

32 changes: 0 additions & 32 deletions modules_desy6/put_xlens_bias.py

This file was deleted.

0 comments on commit d426b80

Please sign in to comment.