Skip to content

Commit

Permalink
Merge pull request #10 from peterjc/patch-1
Browse files Browse the repository at this point in the history
convert_ints_to_floats on old versions of NumPy
  • Loading branch information
abradle authored Aug 10, 2016
2 parents ecfd914 + d3e6131 commit 500f46a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mmtf/converters/numpy_converters.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def convert_ints_to_floats(in_ints, divider):
:param in_ints: the integer array
:param divider: the divider
:return the array of floats produced"""
return (in_ints.astype(dtype=numpy.float64) / divider)
return (in_ints.astype(numpy.float64) / divider)

def recursive_index_decode(int_array, max=32767, min=-32768):
"""Unpack an array of integers using recursive indexing.
Expand Down

0 comments on commit 500f46a

Please sign in to comment.