From 77b1b0f0c2335ac42880a24ea9514974130f13ca Mon Sep 17 00:00:00 2001 From: Abdul Raheem Siddiqui <53625184+ar-siddiqui@users.noreply.github.com> Date: Sun, 28 Feb 2021 19:02:34 -0500 Subject: [PATCH] fix feedback steps --- curve_number_generator_algorithm.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/curve_number_generator_algorithm.py b/curve_number_generator_algorithm.py index 19e2c23..9068b41 100644 --- a/curve_number_generator_algorithm.py +++ b/curve_number_generator_algorithm.py @@ -148,7 +148,7 @@ def initAlgorithm(self, config=None): def processAlgorithm(self, parameters, context, model_feedback): # Use a multi-step feedback, so that individual child algorithm progress reports are adjusted for the # overall progress through the model - feedback = QgsProcessingMultiStepFeedback(24, model_feedback) + feedback = QgsProcessingMultiStepFeedback(25, model_feedback) results = {} outputs = {} @@ -730,7 +730,7 @@ def processAlgorithm(self, parameters, context, model_feedback): is_child_algorithm=True, ) - feedback.setCurrentStep(18) + feedback.setCurrentStep(19) if feedback.isCanceled(): return {} @@ -753,7 +753,7 @@ def processAlgorithm(self, parameters, context, model_feedback): is_child_algorithm=True, ) - feedback.setCurrentStep(19) + feedback.setCurrentStep(20) if feedback.isCanceled(): return {} @@ -776,7 +776,7 @@ def processAlgorithm(self, parameters, context, model_feedback): is_child_algorithm=True, ) - feedback.setCurrentStep(20) + feedback.setCurrentStep(21) if feedback.isCanceled(): return {} @@ -799,7 +799,7 @@ def processAlgorithm(self, parameters, context, model_feedback): is_child_algorithm=True, ) - feedback.setCurrentStep(21) + feedback.setCurrentStep(22) if feedback.isCanceled(): return {} @@ -823,7 +823,7 @@ def processAlgorithm(self, parameters, context, model_feedback): is_child_algorithm=True, ) - feedback.setCurrentStep(22) + feedback.setCurrentStep(23) if feedback.isCanceled(): return {} @@ -846,7 +846,7 @@ def processAlgorithm(self, parameters, context, model_feedback): is_child_algorithm=True, ) - feedback.setCurrentStep(23) + feedback.setCurrentStep(24) if feedback.isCanceled(): return {} @@ -864,7 +864,7 @@ def processAlgorithm(self, parameters, context, model_feedback): is_child_algorithm=True, ) - feedback.setCurrentStep(24) + feedback.setCurrentStep(25) if feedback.isCanceled(): return {}