Skip to content

Commit

Permalink
Proper implementation of casting bins to integer in rotate function
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanslynch authored and scottransom committed Nov 12, 2019
1 parent 4d58533 commit 4ecbd25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/python/psr_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1031,7 +1031,7 @@ def rotate(arr, bins):
rotate(arr, bins):
Return an array rotated by 'bins' places to the left
"""
bins = int(bins % len(arr))
bins = int(bins) % len(arr)
if bins==0:
return arr
else:
Expand Down

0 comments on commit 4ecbd25

Please sign in to comment.