diff --git a/common/python/nomadcore/parser_backend.py b/common/python/nomadcore/parser_backend.py index ed9dd70b5fbfb108f92c4848ea3de133bb29a247..9c437952d4a4e4b41007b1ee8ae409d86095a6cb 100644 --- a/common/python/nomadcore/parser_backend.py +++ b/common/python/nomadcore/parser_backend.py @@ -13,20 +13,20 @@ import sys, re def numpyDtypeForDtypeStr(dtypeStr): """returns the numpy dtype given the meta info dtype""" if dtypeStr == "f" or dtypeStr == "f64": - return numpy.float64 + return np.float64 elif dtypeStr == "f32": - return numpy.float32 + return np.float32 elif dtypeStr == "i" or dtypeStr == "i32": - return numpy.int32 + return np.int32 elif dtypeStr == "i64": - return numpy.int64 - elif dtype == "b": + return np.int64 + elif dtypeStr == "b": return bool - elif dtype == "C": + elif dtypeStr == "C": return object - elif dtype == "D": + elif dtypeStr == "D": return object - elif dtype == "B": + elif dtypeStr == "B": return object def valueForStrValue(strValue, dtypeStr):