Skip to content
Snippets Groups Projects
Commit a4468e7b authored by Micael Oliveira's avatar Micael Oliveira
Browse files

Bug fix: numpy was imported as np, not as numpy.

parent dccab323
No related branches found
No related tags found
No related merge requests found
...@@ -13,20 +13,20 @@ import sys, re ...@@ -13,20 +13,20 @@ import sys, re
def numpyDtypeForDtypeStr(dtypeStr): def numpyDtypeForDtypeStr(dtypeStr):
"""returns the numpy dtype given the meta info dtype""" """returns the numpy dtype given the meta info dtype"""
if dtypeStr == "f" or dtypeStr == "f64": if dtypeStr == "f" or dtypeStr == "f64":
return numpy.float64 return np.float64
elif dtypeStr == "f32": elif dtypeStr == "f32":
return numpy.float32 return np.float32
elif dtypeStr == "i" or dtypeStr == "i32": elif dtypeStr == "i" or dtypeStr == "i32":
return numpy.int32 return np.int32
elif dtypeStr == "i64": elif dtypeStr == "i64":
return numpy.int64 return np.int64
elif dtype == "b": elif dtypeStr == "b":
return bool return bool
elif dtype == "C": elif dtypeStr == "C":
return object return object
elif dtype == "D": elif dtypeStr == "D":
return object return object
elif dtype == "B": elif dtypeStr == "B":
return object return object
def valueForStrValue(strValue, dtypeStr): def valueForStrValue(strValue, dtypeStr):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment