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):
default=200.,
help='threshold on detector function')
detector_tpeaksearch = Float.T(
optional=True,
help='search time span for peak detection')
fill_incomplete_with_zeros = Bool.T(
default=False,
help='fill incomplete trace time windows with zeros '
......
......@@ -180,6 +180,9 @@ def search(
tshift_min = min(tshift_minmaxs)
tshift_max = max(tshift_minmaxs)
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) + \
......
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