Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TM
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
muma
TM
Commits
00ace151
Commit
00ace151
authored
8 years ago
by
Marcus Herrmann
Browse files
Options
Downloads
Patches
Plain Diff
Don't skip days with many (>50) gaps anymore
(they are properly handled since
02aa2586
)
parent
0f5357d6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
TM/waveformops.py
+0
-7
0 additions, 7 deletions
TM/waveformops.py
with
0 additions
and
7 deletions
TM/waveformops.py
+
0
−
7
View file @
00ace151
...
@@ -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
)
*
\
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment