Commit d470ccbe authored by Daniel Scheffler's avatar Daniel Scheffler

Fixed issue #104 (FutureWarning: arrays to stack must be passed as a...

Fixed issue #104 (FutureWarning: arrays to stack must be passed as a "sequence" type such as list or tuple.).
Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <danschef@gfz-potsdam.de>
parent 9bb75b1b
...@@ -13,6 +13,7 @@ History ...@@ -13,6 +13,7 @@ History
* Fixed issue #103 ('struct.error: unpack requires a buffer of 4 bytes' within SpatialIndexMediator in case of various * Fixed issue #103 ('struct.error: unpack requires a buffer of 4 bytes' within SpatialIndexMediator in case of various
parallel database accesses) by adding a database lock that blocks parallel database queries. parallel database accesses) by adding a database lock that blocks parallel database queries.
* Fixed exception while closing AtmCorr.logger. * Fixed exception while closing AtmCorr.logger.
* Fixed issue #104 (FutureWarning: arrays to stack must be passed as a "sequence" type such as list or tuple.).
0.18.11 (2020-11-03) 0.18.11 (2020-11-03)
......
...@@ -118,7 +118,7 @@ class AccuracyCube(GeoArray): ...@@ -118,7 +118,7 @@ class AccuracyCube(GeoArray):
"CFG.spechomo_bandwise_accuracy is False." "CFG.spechomo_bandwise_accuracy is False."
# stack all accuracy layers together # stack all accuracy layers together
accArr = np.dstack(err_layers.values()).astype('int16') accArr = np.dstack(list(err_layers.values())).astype('int16')
# apply int16 nodata value # apply int16 nodata value
accArr[self._GMS_obj.arr.mask_nodata.astype(np.int8) == 0] = get_outFillZeroSaturated('int16')[0] accArr[self._GMS_obj.arr.mask_nodata.astype(np.int8) == 0] = get_outFillZeroSaturated('int16')[0]
......
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