Skip to content

Commit

Permalink
Fix parameters order
Browse files Browse the repository at this point in the history
  • Loading branch information
emanuelegissi committed Aug 20, 2023
1 parent d172a3d commit 49fd7c0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions qgis2fds_export_algo.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ def initAlgorithm(self, config=None):

# Define parameters

# Basic
kwargs = {"algo": self, "config": config, "project": project}
ChidParam.set(**kwargs)
FDSPathParam.set(**kwargs)
Expand All @@ -62,15 +63,16 @@ def initAlgorithm(self, config=None):
LanduseLayerParam.set(**kwargs)
LanduseTypeFilepathParam.set(**kwargs)
FireLayer.set(**kwargs)
TextFilepathParam.set(**kwargs)
# Advanced
TexLayerParam.set(**kwargs)
TexPixelSizeParam.set(**kwargs)
NMeshParam.set(**kwargs)
CellSizeParam.set(**kwargs)
ExportOBSTParam.set(**kwargs)
StartTimeParam.set(**kwargs)
EndTimeParam.set(**kwargs)
WindFilepathParam.set(**kwargs)
TextFilepathParam.set(**kwargs)
ExportOBSTParam.set(**kwargs)

# Define destination layers

Expand Down Expand Up @@ -129,7 +131,6 @@ def processAlgorithm(self, parameters, context, model_feedback):
landuse_layer = LanduseLayerParam.get(**kwargs)
landuse_type_filepath = LanduseTypeFilepathParam.get(**kwargs)
fire_layer = FireLayer.get(**kwargs)
text_filepath = TextFilepathParam.get(**kwargs)
tex_layer = TexLayerParam.get(**kwargs)
tex_pixel_size = TexPixelSizeParam.get(**kwargs)
nmesh = NMeshParam.get(**kwargs)
Expand All @@ -138,6 +139,7 @@ def processAlgorithm(self, parameters, context, model_feedback):
t_begin = StartTimeParam.get(**kwargs)
t_end = EndTimeParam.get(**kwargs)
wind_filepath = WindFilepathParam.get(**kwargs)
text_filepath = TextFilepathParam.get(**kwargs)

# Check parameter values

Expand Down

0 comments on commit 49fd7c0

Please sign in to comment.