Skip to content
Permalink
Browse files

[processing] Fix error when creating tests and raster output

no longer exists

Fixes #16123
  • Loading branch information
nyalldawson committed Jun 1, 2018
1 parent 4289bcb commit 60a87e949750b03c959b62cd5eb3b2828dfc6511
Showing with 9 additions and 0 deletions.
  1. +9 −0 python/plugins/processing/gui/TestTools.py
@@ -263,6 +263,15 @@ def createTest(text):
return

dataset = gdal.Open(token, GA_ReadOnly)
if dataset is None:
QMessageBox.warning(None,
tr('Error'),
tr('Seems some outputs are temporary '
'files. To create test you need to '
'redirect all algorithm outputs to '
'files'))
return

dataArray = nan_to_num(dataset.ReadAsArray(0))
strhash = hashlib.sha224(dataArray.data).hexdigest()

0 comments on commit 60a87e9

Please sign in to comment.
You can’t perform that action at this time.