Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sebastian Heimann
lassie
Commits
0fd6549e
Commit
0fd6549e
authored
Apr 18, 2018
by
Marius Kriegerowski
Browse files
ifc: fix optional downsample_rate
parent
428b3165
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ifc.py
View file @
0fd6549e
...
...
@@ -325,7 +325,7 @@ class TemplateMatchingIFC(IFC):
help
=
'Event parameters of the template'
)
template_markers_path
=
common
.
Path
.
T
(
optional
=
Tru
e
,
optional
=
Fals
e
,
help
=
'File with markers defining the template'
)
sum_square
=
Bool
.
T
(
...
...
@@ -395,7 +395,8 @@ class TemplateMatchingIFC(IFC):
masters
=
{}
for
xtr
in
master_traces
:
tr
=
xtr
.
copy
()
downsample
(
tr
,
1.
/
self
.
downsample_rate
)
if
self
.
downsample_rate
is
not
None
:
downsample
(
tr
,
1.
/
self
.
downsample_rate
)
tr
.
highpass
(
4
,
self
.
fmin
,
demean
=
False
)
tr
.
lowpass
(
4
,
self
.
fmax
,
demean
=
False
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment