Fix non-integer numpy array indexes.
Fix non-integer numpy array indexes.

Properly use integer division, otherwise numpy warns:
"VisibleDeprecationWarning: using a non-integer number instead of
an integer will result in an error in the future"

bzamecnik/tfr,bzamecnik/tfr