Skip to content

Commit

Permalink
Removed prints from generate_meerkat_json
Browse files Browse the repository at this point in the history
  • Loading branch information
NickSwainston committed Nov 8, 2023
1 parent 5250e2c commit 45bd19d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions psrdb/scripts/generate_meerkat_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,9 @@ def get_sf_length(sf_files):
vap_lines = proc.stdout.read().decode("utf-8").split("\n")

lengths = []
print(vap_lines)
for line in vap_lines[1:]:
if line == '':
continue
print(line.split())
lengths.append(float(line.split()[1].strip()))
return sum(lengths)

Expand Down Expand Up @@ -130,9 +128,7 @@ def main():
if obs_data.obs_type == "fold":
archive_files = glob.glob(f"{FOLDING_DIR}/{obs_data.source}/{obs_data.utc_start}/{args.beam}/*/*.ar")
elif obs_data.obs_type == "search":
print(f"{SEARCH_DIR}/{obs_data.source}/{obs_data.utc_start}/{args.beam}/*/*.sf")
archive_files = glob.glob(f"{SEARCH_DIR}/{obs_data.source}/{obs_data.utc_start}/{args.beam}/*/*.sf")
print(archive_files)
if obs_data.obs_type != "cal":
if not os.path.exists(freq_summed_archive) and not archive_files:
logging.error(f"Could not find freq.sum and archive files for {obs_data.source} {obs_data.utc_start} {args.beam}")
Expand Down

0 comments on commit 45bd19d

Please sign in to comment.