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

add debugging option --show-window-traces

parent 0c17d420
......@@ -242,6 +242,10 @@ def command_scan(args):
'--show-movie', dest='show_movie', action='store_true',
help='show movie when showing detections')
parser.add_option(
'--show-window-traces', dest='show_window_traces', action='store_true',
help='show preprocessed traces for every processing time window')
parser.add_option(
'--stop-after-first', dest='stop_after_first', action='store_true',
help='show plot for every detection found')
......@@ -287,6 +291,7 @@ def command_scan(args):
force=options.force,
show_detections=options.show_detections,
show_movie=options.show_movie,
show_window_traces=options.show_window_traces,
stop_after_first=options.stop_after_first,
nparallel=nparallel)
......
......@@ -46,6 +46,7 @@ def scan(
override_tmax=None,
show_detections=False,
show_movie=False,
show_window_traces=False,
force=False,
stop_after_first=False,
nparallel=None):
......@@ -230,7 +231,8 @@ def scan(
trs_debug.append(tr_stackmax)
# trace.snuffle(trs_debug)
if show_window_traces:
trace.snuffle(trs_debug)
ydata_window = tr_stackmax.chop(
wmin, wmax, inplace=False).get_ydata()
......
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