Skip to content

Commit

Permalink
fixed bug in calculating other m13 rotations
Browse files Browse the repository at this point in the history
  • Loading branch information
dave-doty committed Jan 30, 2020
1 parent 0c26a57 commit d973b3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scadnano/scadnano.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ def default_major_tick_distance(grid: Grid) -> int:

def _rotate_string(string: str, rotation: int):
rotation = rotation % len(string)
return string[rotation:] + string[rotation]
return string[rotation:] + string[:rotation]

def m13(rotation: int = 5588):
return _rotate_string(m13_sequence_5588, rotation - 5588)
Expand Down

0 comments on commit d973b3c

Please sign in to comment.