From 697b60ae4b13188639f70f05c4572a4c17801146 Mon Sep 17 00:00:00 2001 From: Kevin Wolz Date: Sun, 15 Dec 2024 13:47:49 -0800 Subject: [PATCH] 2 small bug sin mask and tf power spectrum calculation --- pipeline/get_analysis_mask.py | 4 ++-- pipeline/transfer/compute_pseudo_cells_tf_estimation.py | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/pipeline/get_analysis_mask.py b/pipeline/get_analysis_mask.py index 2a5e580..e74a310 100644 --- a/pipeline/get_analysis_mask.py +++ b/pipeline/get_analysis_mask.py @@ -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 diff --git a/pipeline/transfer/compute_pseudo_cells_tf_estimation.py b/pipeline/transfer/compute_pseudo_cells_tf_estimation.py index 0fe8ac9..e62d5ab 100644 --- a/pipeline/transfer/compute_pseudo_cells_tf_estimation.py +++ b/pipeline/transfer/compute_pseudo_cells_tf_estimation.py @@ -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:],