Skip to content
Snippets Groups Projects
Commit 00ace151 authored by Marcus Herrmann's avatar Marcus Herrmann
Browse files

Don't skip days with many (>50) gaps anymore

(they are properly handled since 02aa2586)
parent 0f5357d6
No related branches found
Tags v0.1.1
No related merge requests found
...@@ -412,13 +412,6 @@ def _waveform_processing_trace(trace, resampling, procType='bandpass', freqMax=N ...@@ -412,13 +412,6 @@ def _waveform_processing_trace(trace, resampling, procType='bandpass', freqMax=N
# Separate each masked clump into an individual (no-gap) trace # Separate each masked clump into an individual (no-gap) trace
trace = separate_masked_trace(trace) # is now a stream (without array masks) trace = separate_masked_trace(trace) # is now a stream (without array masks)
# Raise Warning if too many gaps
if len(trace) > 50:
raise Warning("Too many gaps; chunk lengths may not agree among channels.")
# TODO: Possible solution: triming each sub-trace to indiv. common start/end
# Test-case: MATTE 2016-06-29
# But where to implement? in main()?
# Remove traces that are too small (<= 2 * template duration) # Remove traces that are too small (<= 2 * template duration)
for subtrace in trace: for subtrace in trace:
if subtrace.stats.npts <= (2 * config.duration) * \ if subtrace.stats.npts <= (2 * config.duration) * \
......
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