Commit 47608079 authored by Sebastian Heimann's avatar Sebastian Heimann
Browse files

add option to influence time interval for peak search

parent 3538ddd3
...@@ -99,6 +99,10 @@ class Config(HasPaths): ...@@ -99,6 +99,10 @@ class Config(HasPaths):
default=200., default=200.,
help='threshold on detector function') help='threshold on detector function')
detector_tpeaksearch = Float.T(
optional=True,
help='search time span for peak detection')
fill_incomplete_with_zeros = Bool.T( fill_incomplete_with_zeros = Bool.T(
default=False, default=False,
help='fill incomplete trace time windows with zeros ' help='fill incomplete trace time windows with zeros '
......
...@@ -180,7 +180,10 @@ def search( ...@@ -180,7 +180,10 @@ def search(
tshift_min = min(tshift_minmaxs) tshift_min = min(tshift_minmaxs)
tshift_max = max(tshift_minmaxs) tshift_max = max(tshift_minmaxs)
tpeaksearch = (tshift_max - tshift_min) + 1.0 / fsmooth_min if config.detector_tpeaksearch is not None:
tpeaksearch = config.detector_tpeaksearch
else:
tpeaksearch = (tshift_max - tshift_min) + 1.0 / fsmooth_min
tpad = max(ifc.get_tpad() for ifc in ifcs) + \ tpad = max(ifc.get_tpad() for ifc in ifcs) + \
(tshift_max - tshift_min) + tpeaksearch (tshift_max - tshift_min) + tpeaksearch
......
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