Skip to content
Snippets Groups Projects
Commit 976509da authored by Patrick Godwin's avatar Patrick Godwin
Browse files

datafind.py: check if ifo key is in time_bins before accessing the bins

parent 741b0c7f
No related branches found
No related tags found
No related merge requests found
......@@ -159,7 +159,7 @@ class DataCache:
elif isinstance(time_bins, segmentlist):
time_bins = segmentlistdict({ifo: time_bins for ifo in ifos})
else:
time_bins = segmentlistdict({ifo: time_bins[ifo] for ifo in ifos})
time_bins = segmentlistdict({ifo: time_bins[ifo] for ifo in ifos if ifo in time_bins})
# generate the cache
cache = []
......
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