Commit 0dd20e3f authored by Sebastian Heimann's avatar Sebastian Heimann
Browse files

fix stackmax saving, was broken after merge

parent 419fb998
......@@ -325,6 +325,11 @@ def scan(
*tr_stackmax.peaks(config.detector_threshold, tpeaksearch)) if
wmin <= tpeak and tpeak < wmax]) or ([], [])
tr_stackmax_indx = tr_stackmax.copy(data=False)
imaxs = num.argmax(frames, axis=0)
tr_stackmax_indx.set_ydata(imaxs.astype(num.int32))
tr_stackmax_indx.set_location('i')
for (tpeak, apeak) in zip(tpeaks, apeaks):
logger.info('detection: %s %g' % (
util.time_to_str(tpeak),
......@@ -368,6 +373,7 @@ def scan(
return
tr_stackmax.chop(wmin, wmax)
tr_stackmax_indx.chop(wmin, wmax)
if config.stackmax_path:
io.save(
......
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