Skip to content
Snippets Groups Projects
Commit 34862680 authored by Chad Hanna's avatar Chad Hanna
Browse files

aggregator.py: prevent crash when there is no data

parent 17d57003
No related branches found
No related tags found
No related merge requests found
......@@ -203,6 +203,8 @@ def setup_dir_across_job_by_level(gpstime, typ, route, base_dir, verbose = True,
def gps_range(jobtime):
gpsblocks = set((gps_to_minimum_time_quanta(t) for t in jobtime))
if not gpsblocks:
return [], []
min_t, max_t = min(gpsblocks), max(gpsblocks)
return range(min_t, max_t+MIN_TIME_QUANTA, MIN_TIME_QUANTA), range(min_t+MIN_TIME_QUANTA, max_t+2*MIN_TIME_QUANTA, MIN_TIME_QUANTA)
......
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