Unverified Commit 4ac3ce8a authored by Tammo Jan Dijkema's avatar Tammo Jan Dijkema
Browse files

Fix resuming without telescope

parent 2abf1482
......@@ -79,9 +79,12 @@ minsignal = 1.0e8
if len(sys.argv) > 1 and os.path.isfile(sys.argv[1]):
df = pd.read_csv(sys.argv[1], parse_dates=[0])
is_data = (df["tracker"] == 'suntracker') & \
(df["offset az (deg)"] < 0.01) & \
(df["offset el (deg)"] < 0.01)
if use_telescope:
is_data = (df["tracker"] == 'suntracker') & \
(df["offset az (deg)"] < 0.01) & \
(df["offset el (deg)"] < 0.01)
else:
is_data = np.repeat(True, len(df.index))
file_data_times = (Time(df[is_data]["time (UTC)"]) + 2*u.hour).datetime
file_data = df[is_data]["signal"]
file_cal_times = (Time(df[~is_data]["time (UTC)"]) + 2*u.hour).datetime
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment