From a4468e7b2b0f54ebe269f362dfa2fde028628a6e Mon Sep 17 00:00:00 2001
From: Micael Oliveira <micael.oliveira@mpsd.mpg.de>
Date: Mon, 29 Aug 2016 14:27:54 +0200
Subject: [PATCH] Bug fix: numpy was imported as np, not as numpy.

---
 common/python/nomadcore/parser_backend.py | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/common/python/nomadcore/parser_backend.py b/common/python/nomadcore/parser_backend.py
index ed9dd70..9c43795 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):
-- 
GitLab