Skip to content

Commit

Permalink
[processing] Fix error when creating tests and raster output
Browse files Browse the repository at this point in the history
no longer exists

Fixes #16123
  • Loading branch information
nyalldawson committed Jun 1, 2018
1 parent 4289bcb commit 60a87e9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions python/plugins/processing/gui/TestTools.py
Expand Up @@ -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()

Expand Down

0 comments on commit 60a87e9

Please sign in to comment.