Skip to content
Snippets Groups Projects
Commit 14c3b653 authored by paul.tresson_ird.fr's avatar paul.tresson_ird.fr
Browse files

replace config and contexts in initAlgorithm and postprocessing

parent 8b82a7ea
No related branches found
No related tags found
No related merge requests found
...@@ -71,7 +71,7 @@ class MLAlgorithm(SHPAlgorithm): ...@@ -71,7 +71,7 @@ class MLAlgorithm(SHPAlgorithm):
DEFAULT_TEMPLATE = 'ml_poly.shp' DEFAULT_TEMPLATE = 'ml_poly.shp'
TYPE = 'ml' TYPE = 'ml'
def initAlgorithm(self): def initAlgorithm(self, config=None):
""" """
Here we define the inputs and output of the algorithm, along Here we define the inputs and output of the algorithm, along
with some other properties. with some other properties.
...@@ -493,7 +493,7 @@ class MLAlgorithm(SHPAlgorithm): ...@@ -493,7 +493,7 @@ class MLAlgorithm(SHPAlgorithm):
return help_str return help_str
# used to handle any thread-sensitive cleanup which is required by the algorithm. # used to handle any thread-sensitive cleanup which is required by the algorithm.
def postProcessAlgorithm(self) -> Dict[str, Any]: def postProcessAlgorithm(self, context, feedback) -> Dict[str, Any]:
return {} return {}
......
...@@ -111,7 +111,7 @@ class IAMAPAlgorithm(QgsProcessingAlgorithm): ...@@ -111,7 +111,7 @@ class IAMAPAlgorithm(QgsProcessingAlgorithm):
TMP_DIR = 'iamap_tmp' TMP_DIR = 'iamap_tmp'
def initAlgorithm(self): def initAlgorithm(self, config=None):
""" """
Here we define the inputs and output of the algorithm, along Here we define the inputs and output of the algorithm, along
with some other properties. with some other properties.
...@@ -403,7 +403,7 @@ class IAMAPAlgorithm(QgsProcessingAlgorithm): ...@@ -403,7 +403,7 @@ class IAMAPAlgorithm(QgsProcessingAlgorithm):
return dst_path return dst_path
# used to handle any thread-sensitive cleanup which is required by the algorithm. # used to handle any thread-sensitive cleanup which is required by the algorithm.
def postProcessAlgorithm(self) -> Dict[str, Any]: def postProcessAlgorithm(self, context, feedback) -> Dict[str, Any]:
return {} return {}
...@@ -426,7 +426,7 @@ class SKAlgorithm(IAMAPAlgorithm): ...@@ -426,7 +426,7 @@ class SKAlgorithm(IAMAPAlgorithm):
TYPE = 'proj' TYPE = 'proj'
def initAlgorithm(self): def initAlgorithm(self, config=None):
""" """
Here we define the inputs and output of the algorithm, along Here we define the inputs and output of the algorithm, along
with some other properties. with some other properties.
...@@ -838,7 +838,7 @@ class SKAlgorithm(IAMAPAlgorithm): ...@@ -838,7 +838,7 @@ class SKAlgorithm(IAMAPAlgorithm):
# feedback.pushInfo(f'Silouhette Values : \n{silhouette_values(fit_raster, model.labels_)}') # feedback.pushInfo(f'Silouhette Values : \n{silhouette_values(fit_raster, model.labels_)}')
# used to handle any thread-sensitive cleanup which is required by the algorithm. # used to handle any thread-sensitive cleanup which is required by the algorithm.
def postProcessAlgorithm(self) -> Dict[str, Any]: def postProcessAlgorithm(self, context, feedback) -> Dict[str, Any]:
return {} return {}
...@@ -855,7 +855,7 @@ class SHPAlgorithm(IAMAPAlgorithm): ...@@ -855,7 +855,7 @@ class SHPAlgorithm(IAMAPAlgorithm):
TYPE = 'similarity' TYPE = 'similarity'
def initAlgorithm(self): def initAlgorithm(self, config=None):
""" """
Here we define the inputs and output of the algorithm, along Here we define the inputs and output of the algorithm, along
with some other properties. with some other properties.
...@@ -1030,7 +1030,7 @@ class SHPAlgorithm(IAMAPAlgorithm): ...@@ -1030,7 +1030,7 @@ class SHPAlgorithm(IAMAPAlgorithm):
# used to handle any thread-sensitive cleanup which is required by the algorithm. # used to handle any thread-sensitive cleanup which is required by the algorithm.
def postProcessAlgorithm(self) -> Dict[str, Any]: def postProcessAlgorithm(self, context, feedback) -> Dict[str, Any]:
return {} return {}
if __name__ == "__main__": if __name__ == "__main__":
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment