Commit ec8bd152 authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Fixed deprecation warning.


Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <danschef@gfz-potsdam.de>
parent 0e4412c0
......@@ -89,11 +89,11 @@ def get_GDAL_driverList():
if drv.GetMetadataItem(gdal.DCAP_RASTER):
meta = drv.GetMetadataItem(gdal.DMD_EXTENSIONS)
extensions = meta.split() if meta else []
df.ix[i] = [drv.GetDescription(),
drv.GetMetadataItem(gdal.DMD_LONGNAME),
extensions[0] if len(extensions) > 0 else np.nan,
extensions[1] if len(extensions) > 1 else np.nan,
extensions[2] if len(extensions) > 2 else np.nan]
df.loc[i] = [drv.GetDescription(),
drv.GetMetadataItem(gdal.DMD_LONGNAME),
extensions[0] if len(extensions) > 0 else np.nan,
extensions[1] if len(extensions) > 1 else np.nan,
extensions[2] if len(extensions) > 2 else np.nan]
df = df.dropna(how='all')
return df
......
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