Skip to content

Commit

Permalink
Merge pull request #500 from Samweli/sieve_message
Browse files Browse the repository at this point in the history
Sieve message update
  • Loading branch information
Samweli committed Jul 29, 2024
2 parents ee80a06 + 2d050a1 commit f2b5025
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"author": "Kartoza",
"email": "[email protected]",
"description": "QGIS plugin for the CPLUS framework",
"version": "0.0.1",
"version": "1.0.1",
"changelog": ""
}
}
20 changes: 10 additions & 10 deletions src/cplus_plugin/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -1378,7 +1378,7 @@ def run_activities_sieve(self, models, temporary_output=False):
threshold size (in pixels) and replaces them with the pixel value of
the largest neighbour polygon.
:param models: List of the analyzed implementation models
:param models: List of the analyzed activities
:type models: typing.List[ImplementationModel]
:param extent: Selected area of interest extent
Expand All @@ -1395,9 +1395,7 @@ def run_activities_sieve(self, models, temporary_output=False):
# Will not proceed if processing has been cancelled by the user
return False

self.set_status_message(
tr("Applying sieve function to the implementation models")
)
self.set_status_message(tr("Applying sieve function to the activities"))

try:
for model in models:
Expand Down Expand Up @@ -1447,12 +1445,14 @@ def run_activities_sieve(self, models, temporary_output=False):
)

# Actual processing calculation
# alg_params = {
# "INPUT": model.path,
# "THRESHOLD": threshold_value,
# "MASK_LAYER": mask_layer,
# "OUTPUT": output,
# }
alg_params = {
"INPUT": model.path,
"THRESHOLD": threshold_value,
"MASK_LAYER": mask_layer,
"OUTPUT": output,
}

self.log_message(f"Used parameters for sieving: {alg_params} \n")

input_name = os.path.splitext(os.path.basename(model.path))[0]

Expand Down

0 comments on commit f2b5025

Please sign in to comment.