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

Bugfix for SystemError: <built-in function Band_SetNoDataValue> returned a result with an error set

updated __version__ and __versionalias__
parent ebe1fdf0
Pipeline #282 passed with stages
in 41 seconds
......@@ -8,8 +8,8 @@ from . import similarity
from . import web
from .io.raster.GeoArray import GeoArray
__version__ = '0.3.0'
__versionalias__ = '20170630_01'
__version__ = '0.3.1'
__versionalias__ = '20170630_02'
__author__='Daniel Scheffler'
# Validate GDAL version
......
......@@ -44,7 +44,7 @@ def get_GDAL_ds_inmem(array, gt=None, prj=None, nodata=None):
for i in range(ds.RasterCount):
band = ds.GetRasterBand(i+1)
try:
band.SetNoDataValue(int(nodata))
band.SetNoDataValue(nodata)
except TypeError:
raise Exception('TypeError while trying to set NoDataValue to %s. ' %nodata)
band=None
......@@ -66,4 +66,4 @@ def get_GDAL_driverList():
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
\ No newline at end of file
return df
......@@ -17,7 +17,7 @@ test_requirements = requirements + ['coverage']
setup(
name='py_tools_ds',
version='0.3.0',
version='0.3.1',
description="A collection of Python tools by Daniel Scheffler.",
long_description=readme + '\n\n' + history,
author="Daniel Scheffler",
......
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