Skip to content
Snippets Groups Projects
Commit afd21809 authored by Branson Craig Stephens's avatar Branson Craig Stephens
Browse files

Fixed bug with translator for CWB events. Needs to rewind the file.

parent f0713c04
No related branches found
No related tags found
No related merge requests found
......@@ -517,6 +517,8 @@ class CwbData(Translator):
key, val = line
rawdata[key] = val.split()
datafile.seek(0)
# scan down for FAR
next_line_is_far = False
for line in datafile:
......@@ -568,6 +570,7 @@ class CwbData(Translator):
# Check for the links at the end.
ced_link = None
fits_skymap_link = None
datafile.seek(0)
for line in datafile:
if line.startswith("http"):
if line.find(".fits") > 0:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment