Commit 7d8a6970 authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Replaced deprecated numpy data types which are only aliases of builtin types.


Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <danschef@gfz-potsdam.de>
parent 5822711c
......@@ -200,8 +200,8 @@ class mp_SharedNdarray(object):
"""
dims : tuple of dimensions which is used to instantiate a ndarray using np.zero
"""
# self.ct = np.ctypeslib.as_ctypes(np.zeros(dims, dtype=np.float)) # ctypes view on the new array
self.ct = np.ctypeslib.as_ctypes(np.empty(dims, dtype=np.float)) # ctypes view on the new array
# self.ct = np.ctypeslib.as_ctypes(np.zeros(dims, dtype=float)) # ctypes view on the new array
self.ct = np.ctypeslib.as_ctypes(np.empty(dims, dtype=float)) # ctypes view on the new array
self.sh = sharedctypes.Array(self.ct.type_, self.ct, lock=False) # shared memory view on the array
self.np = np.ctypeslib.as_array(self.sh) # numpy view on the array
......@@ -459,7 +459,7 @@ def find_in_xml(xml, *branch):
return buf
def get_values_from_xml(leaf, dtype=np.float):
def get_values_from_xml(leaf, dtype=float):
"""
S2 xml helper function
:param leaf: xml object which is searched for VALUES tag which are then composed into a numpy array
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment