From e69bc34136f6ccad32ba88700fe869b8187619a8 Mon Sep 17 00:00:00 2001 From: Kevin Wolz Date: Mon, 29 Jul 2024 11:19:56 -0700 Subject: [PATCH] SAT beams small change --- pipeline/misc/get_sat_beams.py | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/pipeline/misc/get_sat_beams.py b/pipeline/misc/get_sat_beams.py index 6859a53..0835e55 100644 --- a/pipeline/misc/get_sat_beams.py +++ b/pipeline/misc/get_sat_beams.py @@ -2,7 +2,6 @@ from soopercool import BBmeta import soopercool.SO_Noise_Calculator_Public_v3_1_2 as noise_calc import numpy as np -import os def beam_gaussian(ll, fwhm_amin): @@ -56,14 +55,10 @@ def main(args): fname = f"{beam_dir}/beam_{ms}.dat" - if not os.path.exists(fname): - if verbose: - print(f"Written to {fname}.") - l, bl = get_sat_beam(freq_tag, lmax_sim) - np.savetxt(fname, np.transpose([l, bl])) - else: - if verbose: - print(f"beam_{ms} exists, do nothing.") + if verbose: + print(f"Written to {fname}.") + l, bl = get_sat_beam(freq_tag, lmax_sim) + np.savetxt(fname, np.transpose([l, bl])) if __name__ == "__main__":