Skip to content
Permalink
Browse files

fix modeller with saga tools

  • Loading branch information
Giovanni Manghi
Giovanni Manghi committed Oct 31, 2014
1 parent d99d2fd commit 9024badc6009eecdfc121863d54f59c95ba2a665
Showing with 8 additions and 8 deletions.
  1. +8 −8 python/plugins/processing/algs/saga/SagaAlgorithm.py
@@ -246,14 +246,14 @@ def processAlgorithm(self, progress):

# Do not export is the output is not a final output
# of the model
if self.model is not None and optim:
for subalg in self.model.algOutputs:
if out.name in subalg:
if subalg[out.name] is not None:
dontExport = False
break
if dontExport:
continue
#if self.model is not None and optim:
# for subalg in self.model.algOutputs:
# if out.name in subalg:
# if subalg[out.name] is not None:
# dontExport = False
# break
# if dontExport:
# continue

if self.cmdname == 'RGB Composite':
if isWindows() or isMac() or not saga208:

3 comments on commit 9024bad

@volaya

This comment has been minimized.

Copy link
Contributor

@volaya volaya replied Oct 31, 2014

What was the issue with this? Removing this will cause saga optimizations to not be used

@gioman

This comment has been minimized.

Copy link
Contributor

@gioman gioman replied Oct 31, 2014

all models with SAGA tools give this

Uncaught error while executing algorithm
Traceback (most recent call last):
Traceback (most recent call last):
File "C:/OSGEO41/apps/qgis-dev/./python/plugins\processing\core\GeoAlgorithm.py",
line 212, in execute
self.processAlgorithm(progress)
File "C:/OSGEO4
1/apps/qgis-dev/./python/plugins\processing\algs\saga\SagaAlgorithm.py",
line 250, in processAlgorithm
for subalg in self.model.algOutputs:
AttributeError: ModelerAlgorithm instance has no attribute 'algOutputs'

@gioman

This comment has been minimized.

Copy link
Contributor

@gioman gioman replied Oct 31, 2014

mine was a last minute try to get at least the modeller working (with saga tools) in qgis 2.6

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