Skip to content

Commit

Permalink
integer division fix
Browse files Browse the repository at this point in the history
  • Loading branch information
scottransom committed Nov 17, 2019
1 parent cd8a847 commit 4597a9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/presto/psr_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def running_avg(arr, navg):
input array 'arr'.
"""
a = Num.asarray(arr, 'd')
a.shape = (len(a) / navg, navg)
a.shape = (len(a) // navg, navg)
return Num.add.reduce(Num.transpose(a)) / navg


Expand Down

0 comments on commit 4597a9b

Please sign in to comment.