@@ -89,7 +89,7 @@ def runAlgorithm(self):
89
89
if not param .checkValueIsAcceptable (wrapper .parameterValue ()):
90
90
self .messageBar ().pushMessage ("" , self .tr ('Wrong or missing parameter value: {0} (row {1})' ).format (
91
91
param .description (), row + 1 ),
92
- level = Qgis .Warning , duration = 5 )
92
+ level = Qgis .Warning , duration = 5 )
93
93
return
94
94
col += 1
95
95
count_visible_outputs = 0
@@ -112,7 +112,7 @@ def runAlgorithm(self):
112
112
else :
113
113
self .messageBar ().pushMessage ("" , self .tr ('Wrong or missing output value: {0} (row {1})' ).format (
114
114
out .description (), row + 1 ),
115
- level = Qgis .Warning , duration = 5 )
115
+ level = Qgis .Warning , duration = 5 )
116
116
return
117
117
118
118
alg_parameters .append (parameters )
@@ -139,8 +139,11 @@ def runAlgorithm(self):
139
139
for count , parameters in enumerate (alg_parameters ):
140
140
if feedback .isCanceled ():
141
141
break
142
- self .setProgressText (QCoreApplication .translate ('BatchAlgorithmDialog' , '\n Processing algorithm {0}/{1}…' ).format (count + 1 , len (alg_parameters )))
143
- self .setInfo (self .tr ('<b>Algorithm {0} starting…</b>' ).format (self .algorithm ().displayName ()), escapeHtml = False )
142
+ self .setProgressText (
143
+ QCoreApplication .translate ('BatchAlgorithmDialog' , '\n Processing algorithm {0}/{1}…' ).format (
144
+ count + 1 , len (alg_parameters )))
145
+ self .setInfo (self .tr ('<b>Algorithm {0} starting…</b>' ).format (self .algorithm ().displayName ()),
146
+ escapeHtml = False )
144
147
multi_feedback .setCurrentStep (count )
145
148
146
149
parameters = self .algorithm ().preprocessParameters (parameters )
@@ -158,7 +161,9 @@ def runAlgorithm(self):
158
161
alg_start_time = time .time ()
159
162
ret , results = execute (self .algorithm (), parameters , context , multi_feedback )
160
163
if ret :
161
- self .setInfo (QCoreApplication .translate ('BatchAlgorithmDialog' , 'Algorithm {0} correctly executed…' ).format (self .algorithm ().displayName ()), escapeHtml = False )
164
+ self .setInfo (
165
+ QCoreApplication .translate ('BatchAlgorithmDialog' , 'Algorithm {0} correctly executed…' ).format (
166
+ self .algorithm ().displayName ()), escapeHtml = False )
162
167
feedback .pushInfo (
163
168
self .tr ('Execution completed in {0:0.2f} seconds' .format (time .time () - alg_start_time )))
164
169
feedback .pushInfo (self .tr ('Results:' ))
@@ -209,5 +214,6 @@ def createSummaryTable(self, algorithm_results):
209
214
f .write ('<p>{}: {}</p>\n ' .format (out .description (), res [out .name ()]))
210
215
f .write ('<hr>\n ' )
211
216
212
- resultsList .addResult (self .algorithm ().icon (),
213
- '{} [summary]' .format (self .algorithm ().name ()), outputFile )
217
+ resultsList .addResult (icon = self .algorithm ().icon (),
218
+ name = '{} [summary]' .format (self .algorithm ().name ()), timestamp = time .localtime (),
219
+ result = outputFile )
0 commit comments