Skip to content
Permalink
Browse files

[processing] some refactoring as suggested by Nathan Woodrow

  • Loading branch information
alexbruy committed Jan 6, 2014
1 parent 2fc5c01 commit d1a350847a46c7ce23283524789c30cb9c44a560
Showing with 2 additions and 2 deletions.
  1. +2 −2 python/plugins/processing/algs/FieldsCalculator.py
@@ -120,7 +120,8 @@ def processAlgorithm(self, progress):
total = 100.0 / len(features)

rownum = 1
for f in features:
for current, f in enumerate(features):
rownum = current + 1
exp.setCurrentRowNumber(rownum)
value = exp.evaluate(f)
if exp.hasEvalError():
@@ -134,7 +135,6 @@ def processAlgorithm(self, progress):
outFeature[fieldName] = value
writer.addFeature(outFeature)

current += 1
progress.setPercentage(int(current * total))
del writer

0 comments on commit d1a3508

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