From e752c81b263c484773303de4ca7e96d599e8410d Mon Sep 17 00:00:00 2001 From: Emanuele Gissi Date: Sun, 20 Aug 2023 17:15:53 +0200 Subject: [PATCH] Cleaning FDS TIME and FDS path --- qgis2fds_params.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/qgis2fds_params.py b/qgis2fds_params.py index 4cd3a4d..3da60ab 100644 --- a/qgis2fds_params.py +++ b/qgis2fds_params.py @@ -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 @@ -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 @@ -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 @@ -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 @@ -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