Update numpy dtypes extension for correct type codes.

This commit is contained in:
Robert Smallshire
2015-02-24 17:27:37 +01:00
parent 52cb3a7005
commit aac598d64f
+5 -5
View File
@@ -2,11 +2,11 @@
import numpy
NUMPY_DTYPES = {'ibm': numpy.dtype('f4'),
'l': numpy.dtype('i4'),
'h': numpy.dtype('i2'),
'f': numpy.dtype('f4'),
'b': numpy.dtype('i1')}
NUMPY_DTYPES = {'ibm': numpy.dtype('f4'),
'int32': numpy.dtype('i4'),
'int16': numpy.dtype('i2'),
'float32': numpy.dtype('f4'),
'int8': numpy.dtype('i1')}
def make_dtype(data_sample_format):