Skip to content
Snippets Groups Projects
Commit e9cb25aa authored by Erin (Josh) Rigler's avatar Erin (Josh) Rigler Committed by Wilbur, Spencer Franklin
Browse files

Check for gaps in multi-observatory Stream

The method TimeseriesUtility.get_stream_gaps() would over-write gaps[channel] if
there were multiple Traces in a stream that were the same channel, but different
observatories. This is a typical situation when using the AverageAlgorithm.
parent 5d4f84db
No related branches found
No related tags found
2 merge requests!223Attempt StringIO after failed BytesIO file read,!212Draft: Reattempt to merge old Iris-Factory Branch from Swilbur's local repo
...@@ -205,7 +205,10 @@ def get_stream_gaps(stream, channels=None): ...@@ -205,7 +205,10 @@ def get_stream_gaps(stream, channels=None):
channel = trace.stats.channel channel = trace.stats.channel
if channels is not None and channel not in channels: if channels is not None and channel not in channels:
continue continue
gaps[channel] = get_trace_gaps(trace) if channel in gaps:
gaps[channel].extend(get_trace_gaps(trace))
else:
gaps[channel] = get_trace_gaps(trace)
return gaps return gaps
......
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