Commit 0fd6549e authored by Marius Kriegerowski's avatar Marius Kriegerowski
Browse files

ifc: fix optional downsample_rate

parent 428b3165
...@@ -325,7 +325,7 @@ class TemplateMatchingIFC(IFC): ...@@ -325,7 +325,7 @@ class TemplateMatchingIFC(IFC):
help='Event parameters of the template') help='Event parameters of the template')
template_markers_path = common.Path.T( template_markers_path = common.Path.T(
optional=True, optional=False,
help='File with markers defining the template') help='File with markers defining the template')
sum_square = Bool.T( sum_square = Bool.T(
...@@ -395,7 +395,8 @@ class TemplateMatchingIFC(IFC): ...@@ -395,7 +395,8 @@ class TemplateMatchingIFC(IFC):
masters = {} masters = {}
for xtr in master_traces: for xtr in master_traces:
tr = xtr.copy() 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.highpass(4, self.fmin, demean=False)
tr.lowpass(4, self.fmax, demean=False) tr.lowpass(4, self.fmax, demean=False)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment