From 00ace15152d6c47f0921e839c0a32a17fd60373d Mon Sep 17 00:00:00 2001
From: Marcus Herrmann <marcus.herrmann@sed.ethz.ch>
Date: Wed, 12 Oct 2016 16:00:58 +0200
Subject: [PATCH] Don't skip days with many (>50) gaps anymore

(they are properly handled since 02aa2586fea67b468e9b30cbe96c3e47bf51f124)
---
 TM/waveformops.py | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/TM/waveformops.py b/TM/waveformops.py
index 515dcd3..48d4eb9 100644
--- a/TM/waveformops.py
+++ b/TM/waveformops.py
@@ -412,13 +412,6 @@ def _waveform_processing_trace(trace, resampling, procType='bandpass', freqMax=N
             # Separate each masked clump into an individual (no-gap) trace
             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)
             for subtrace in trace:
                 if subtrace.stats.npts <= (2 * config.duration) * \
-- 
GitLab