Commit 01531af1 authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Fixed DeprecationWarning related to deprecated numpy data types that are only...


Fixed DeprecationWarning related to deprecated numpy data types that are only aliases for builtin types.
Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <danschef@gfz-potsdam.de>
parent efe6f63f
......@@ -670,10 +670,10 @@ class Tie_Point_Grid(object):
GDF2pass.LAST_ERR = GDF2pass.apply(lambda GDF_row: repr(GDF_row.LAST_ERR), axis=1)
# replace boolean values (cannot be written)
GDF2pass = GDF2pass.replace(False, 0).copy() # replace booleans where column dtype is not np.bool but np.object
GDF2pass = GDF2pass.replace(False, 0).copy() # replace booleans where column dtype is not bool but np.object
GDF2pass = GDF2pass.replace(True, 1).copy()
for col in GDF2pass.columns:
if GDF2pass[col].dtype == np.bool:
if GDF2pass[col].dtype == bool:
GDF2pass[col] = GDF2pass[col].astype(int)
path_out = path_out if path_out else \
......
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