Godtone
Joined 17 December 2020
Tag: Undo |
→My Python 3 code: make CS violation indices more intuitive by having the 0th index correspond to the unison rather than the interval after the unison |
||
| Line 1,120: | Line 1,120: | ||
if interval in stepmap: | if interval in stepmap: | ||
if stepmap[interval] != j: | if stepmap[interval] != j: | ||
return [interval, i, j] | return [interval, (i+1)%n, j] | ||
else: | else: | ||
stepmap[interval] = j | stepmap[interval] = j | ||