Skip to content

Commit

Permalink
Revert DetrendDEM float input
Browse files Browse the repository at this point in the history
  • Loading branch information
sdunesme committed Jan 7, 2025
1 parent 0ae1b2e commit 406c6a1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ jobs:
- uses: actions/checkout@v4
- name: Run tests
run: |
xvfb-run -s '+extension GLX -screen 0 800x600x24' /usr/bin/python3 -m pytest -v
xvfb-run -s '+extension GLX -screen 0 1024x768x24' /usr/bin/python3 -m pytest -v
2 changes: 1 addition & 1 deletion fct/algorithms/terrain/DetrendDEM.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class DetrendDEM(AlgorithmMetadata, QgsProcessingAlgorithm):

def initAlgorithm(self, configuration):
self.addParameter(QgsProcessingParameterRasterLayer('dem', 'Input DEM', defaultValue=None))
self.addParameter(QgsProcessingParameterDistance('disaggregationdistance', 'Disaggregation Distance', parentParameterName='dem', defaultValue=None, type=QgsProcessingParameterDistance.Double))
self.addParameter(QgsProcessingParameterDistance('disaggregationdistance', 'Disaggregation Distance', parentParameterName='dem', defaultValue=None))
self.addParameter(QgsProcessingParameterFeatureSource('stream', 'Stream network', types=[QgsProcessing.TypeVectorLine], defaultValue=None))
self.addParameter(QgsProcessingParameterRasterDestination('Detrended', 'Output detrended DEM', createByDefault=True, defaultValue=None))

Expand Down
3 changes: 1 addition & 2 deletions fct/workflows/spatialcomponents/ValleyBottom.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ def initAlgorithm(self, configuration):
self.addParameter(QgsProcessingParameterNumber(
self.STEP,
self.tr('Disaggregation step (topological detrending only)'),
defaultValue=50.0,
type=QgsProcessingParameterNumber.Double,
defaultValue=50,
minValue=1))

self.addParameter(QgsProcessingParameterNumber(
Expand Down

0 comments on commit 406c6a1

Please sign in to comment.