Skip to content

Commit 546724b

Browse files
fix: correct parameter types
1 parent af2056d commit 546724b

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

m2l/processing/algorithms/sampler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def initAlgorithm(self, config: Optional[dict[str, Any]] = None) -> None:
7878
QgsProcessingParameterFeatureSource(
7979
self.INPUT_DTM,
8080
"DTM",
81-
[QgsProcessing.TypeVectorRaster],
81+
[QgsProcessing.TypeRaster],
8282
)
8383
)
8484

m2l/processing/algorithms/sorter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def initAlgorithm(self, config: Optional[dict[str, Any]] = None) -> None:
7474
self.addParameter(
7575
QgsProcessingParameterFeatureSource(
7676
self.INPUT,
77-
self.tr("Geology polygons"),
77+
"Geology polygons",
7878
[QgsProcessing.TypeVectorPolygon],
7979
)
8080
)
@@ -83,7 +83,7 @@ def initAlgorithm(self, config: Optional[dict[str, Any]] = None) -> None:
8383
self.addParameter(
8484
QgsProcessingParameterEnum(
8585
self.ALGO,
86-
self.tr("Sorting strategy"),
86+
"Sorting strategy",
8787
options=list(SORTER_LIST.keys()),
8888
defaultValue=0, # Age-based is safest default
8989
)

m2l/processing/algorithms/thickness_calculator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def initAlgorithm(self, config: Optional[dict[str, Any]] = None) -> None:
7979
QgsProcessingParameterFeatureSource(
8080
self.INPUT_DTM,
8181
"DTM",
82-
[QgsProcessing.TypeVectorRaster],
82+
[QgsProcessing.TypeRaster],
8383
)
8484
)
8585
self.addParameter(

0 commit comments

Comments
 (0)