Skip to content

Commit

Permalink
SAT beams small change
Browse files Browse the repository at this point in the history
  • Loading branch information
kwolz committed Jul 29, 2024
1 parent dfb3f6f commit e69bc34
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions pipeline/misc/get_sat_beams.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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__":
Expand Down

0 comments on commit e69bc34

Please sign in to comment.