Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and nyalldawson committed Feb 14, 2025
1 parent d5c1c6d commit 88383c3
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions python/plugins/processing/algs/gdal/proximity.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,14 @@ def initAlgorithm(self, config=None):
)
values_param = QgsProcessingParameterString(
self.VALUES,
self.tr(
"List of target pixels"
),
self.tr("List of target pixels"),
optional=True,
)
values_param.setHelp(self.tr("Comma-separated list of pixel values in the source image to consider as target pixels. If not specified, all non-zero pixels will be considered target pixels."))
values_param.setHelp(
self.tr(
"Comma-separated list of pixel values in the source image to consider as target pixels. If not specified, all non-zero pixels will be considered target pixels."
)
)
self.addParameter(values_param)

self.addParameter(
Expand Down Expand Up @@ -132,7 +134,11 @@ def initAlgorithm(self, config=None):
defaultValue=0.0,
optional=True,
)
replace_param.setHelp(self.tr("Value to apply to all pixels within the maximum distance of target pixels (including the target pixels) instead of a distance value"))
replace_param.setHelp(
self.tr(
"Value to apply to all pixels within the maximum distance of target pixels (including the target pixels) instead of a distance value"
)
)
self.addParameter(replace_param)

nodata_param = QgsProcessingParameterNumber(
Expand All @@ -142,8 +148,12 @@ def initAlgorithm(self, config=None):
defaultValue=0.0,
optional=True,
)
nodata_param.setHelp(self.tr("NoData value to use for the pixels beyond the maximum distance. "
"If not provided, it will be set to the one from the output band, or ultimately to 65535."))
nodata_param.setHelp(
self.tr(
"NoData value to use for the pixels beyond the maximum distance. "
"If not provided, it will be set to the one from the output band, or ultimately to 65535."
)
)
self.addParameter(nodata_param)

options_param = QgsProcessingParameterString(
Expand Down

0 comments on commit 88383c3

Please sign in to comment.