提交 647b2c89 authored 作者: Razvan Pascanu's avatar Razvan Pascanu

Fix to a bug in scan sequences taps

The bug was reported by Nicolas, and it happens when you have a single tap for a sequence that is different from 0.
上级 b8165faa
......@@ -492,7 +492,10 @@ def scan(fn,
else:
offset = 0
if maxtap == mintap and maxtap != 0:
nw_seq = seq['input'][:abs(maxtap)]
if maxtap < 0:
nw_seq = seq['input'][:maxtap]
else:
nw_seq = seq['input'][maxtap:]
elif maxtap - k != 0:
nw_seq = seq['input'][offset + k - mintap: -(maxtap - k)]
else:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论