Skip to content

Commit

Permalink
Check for gps time > 0 when getting start/stop times
Browse files Browse the repository at this point in the history
  • Loading branch information
winstonolson committed Aug 1, 2023
1 parent 759c2a7 commit 5ab2052
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion get_bad_start_stop_times.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def main():
if index is None:
raise RuntimeError("Unable to find coarse time column (LADP06MD2378W) in data")

gps_times = [float(row[index]) for row in rows if len(row) > index]
gps_times = [float(row[index]) for row in rows if len(row) > index and float(row[index]) > 0]

start_time = get_utc_time_from_gps(min(gps_times))
stop_time = get_utc_time_from_gps(max(gps_times))
Expand Down

0 comments on commit 5ab2052

Please sign in to comment.