Skip to content
GitLab
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
47608079
Commit
47608079
authored
Dec 19, 2017
by
Sebastian Heimann
Browse files
add option to influence time interval for peak search
parent
3538ddd3
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/config.py
View file @
47608079
...
...
@@ -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 '
...
...
src/core.py
View file @
47608079
...
...
@@ -180,7 +180,10 @@ def search(
tshift_min
=
min
(
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
)
+
\
(
tshift_max
-
tshift_min
)
+
tpeaksearch
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment