Skip to content

Commit

Permalink
math floor progress on clipping alg
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharlie committed Jul 26, 2022
1 parent 122ccae commit be975fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion geodata/seed/clip_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
import os
from pathlib import Path
from datetime import date
from math import floor


class GdmClipProjectLayers(QgsProcessingAlgorithm):
Expand Down Expand Up @@ -257,7 +258,7 @@ def incrementProgress(self, feedback, msg="Processing step complete"):
feedback.setProgress(feedback.progress() + self.increment)
if self.progress_recorder:
self.progress_recorder.set_progress(
(feedback.progress() * 0.8) + 10, 100, description=msg
floor(feedback.progress() * 0.8) + 10, 100, description=msg
) # current, total, description

def zipOutputs(self, parameters, context, feedback, extensions, file_name):
Expand Down

0 comments on commit be975fe

Please sign in to comment.