Skip to content

Commit

Permalink
remove tricky "lower()" call to raster path.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel committed Feb 9, 2024
1 parent 3afc969 commit e7c757c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ def processAlgorithm(self, parameters, context, feedback):

# Get the file path of the raster layer
path_source_raster_rock_surface = (
source_raster_rock_surface.source().lower().split("|")[0]
source_raster_rock_surface.source().split("|")[0]
)
self.logger.info(
f"PROCESS - Rock raster DTM File path: {path_source_raster_rock_surface}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ def processAlgorithm(self, parameters, context, feedback):

# Get the file path of the raster layer
path_source_raster_rock_surface = (
source_raster_rock_surface.source().lower().split("|")[0]
source_raster_rock_surface.source().split("|")[0]
)
self.logger.info(
f"PROCESS - Rock raster DTM File path: {path_source_raster_rock_surface}"
Expand Down
2 changes: 1 addition & 1 deletion geovita_processing_plugin/algorithms/BegrensSkadeTunnel.py
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ def processAlgorithm(self, parameters, context, feedback):

# Get the file path of the raster layer
path_source_raster_rock_surface = (
source_raster_rock_surface.source().lower().split("|")[0]
source_raster_rock_surface.source().split("|")[0]
)
self.logger.info(
f"PROCESS - Rock raster DTM File path: {path_source_raster_rock_surface}"
Expand Down
4 changes: 3 additions & 1 deletion geovita_processing_plugin/test/test_alg_excavation.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def test_algorithm_loaded(self):
)

def test_algorithm_exec_all(self):
"""Test executing the BegrensSkadeExcavation algorithm with a basic set of parameters."""
"""Test executing the BegrensSkadeExcavation algorithm with the default set of all parameters."""

feedback = QgsProcessingFeedback()
context = QgsProcessingContext()
Expand All @@ -145,6 +145,7 @@ def test_algorithm_exec_all(self):
# Further checks can include verifying the contents of the output shapefiles

def test_algorithm_exec_short(self):
"""Test executing the BegrensSkadeExcavation algorithm with short term parameters"""
feedback = QgsProcessingFeedback()
context = QgsProcessingContext()
params_short = self.params.copy()
Expand All @@ -165,6 +166,7 @@ def test_algorithm_exec_short(self):
# Further checks can include verifying the contents of the output shapefiles

def test_algorithm_exec_long(self):
"""Test executing the BegrensSkadeExcavation algorithm with long term parameters"""
feedback = QgsProcessingFeedback()
context = QgsProcessingContext()
params_long = self.params.copy()
Expand Down

0 comments on commit e7c757c

Please sign in to comment.