Skip to content

Commit

Permalink
Cleaning FDS TIME and FDS path
Browse files Browse the repository at this point in the history
  • Loading branch information
emanuelegissi committed Aug 20, 2023
1 parent 49fd7c0 commit e752c81
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions qgis2fds_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def get(cls, algo, parameters, context, feedback, project):
class FDSPathParam:
label = "fds_path"
desc = "Save in folder"
default = "./"
default = "../FDS"
optional = False

@classmethod
Expand Down Expand Up @@ -509,7 +509,7 @@ def get(cls, algo, parameters, context, feedback, project):

class StartTimeParam:
label = "t_begin"
desc = "FDS start time" # FIXME
desc = "FDS TIME T_BEGIN"
default = 0.0
optional = True

Expand All @@ -523,6 +523,7 @@ def set(cls, algo, config, project):
optional=cls.optional,
type=QgsProcessingParameterNumber.Double,
)
param.setFlags(param.flags() | QgsProcessingParameterDefinition.FlagAdvanced)
algo.addParameter(param)

@classmethod
Expand All @@ -535,7 +536,7 @@ def get(cls, algo, parameters, context, feedback, project):

class EndTimeParam:
label = "t_end"
desc = "FDS end time" # FIXME
desc = "FDS TIME T_END"
default = 0.0
optional = True

Expand All @@ -549,6 +550,7 @@ def set(cls, algo, config, project):
optional=cls.optional,
type=QgsProcessingParameterNumber.Double,
)
param.setFlags(param.flags() | QgsProcessingParameterDefinition.FlagAdvanced)
algo.addParameter(param)

@classmethod
Expand Down

0 comments on commit e752c81

Please sign in to comment.