Skip to content

Commit

Permalink
2 small bug sin mask and tf power spectrum calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
kwolz committed Dec 15, 2024
1 parent 8dc35cd commit 697b60a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pipeline/get_analysis_mask.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ def main(args):
masks_settings = meta.masks

# If a global hits file is indicated in the paramter file, use it.
if masks_settings["global_hits_file_overwrite"] is not None:
if masks_settings["global_hits"] is not None:
sum_hits = mu.read_map(
masks_settings["global_hits_file_overwrite"],
masks_settings["global_hits"],
pix_type=meta.pix_type
)
# Create binary
Expand Down
4 changes: 3 additions & 1 deletion pipeline/transfer/compute_pseudo_cells_tf_estimation.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ def main(args):
fields_hp=[0, 1, 2]
)

wcs = map.wcs
wcs = None
if hasattr(map, 'wcs'):
wcs = map.wcs
field = {
"spin0": nmt.NmtField(mask, map[:1], wcs=wcs),
"spin2": nmt.NmtField(mask, map[1:],
Expand Down

0 comments on commit 697b60a

Please sign in to comment.