From: André Ribes Date: Thu, 24 Mar 2011 10:39:05 +0000 (+0100) Subject: Ajout input output X-Git-Tag: V6_4_0rc3~62 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=773dce67b13af78815a9b87f0d101a3f52367cf2;p=modules%2Fadao.git Ajout input output --- diff --git a/bin/AdaoCatalogGenerator.py b/bin/AdaoCatalogGenerator.py index 548cecf..c36656c 100644 --- a/bin/AdaoCatalogGenerator.py +++ b/bin/AdaoCatalogGenerator.py @@ -114,8 +114,8 @@ ASSIMILATION_STUDY = PROC(nom="ASSIMILATION_STUDY", AlgorithmParameters = F_AlgorithmParameters("f"), UserDataInit = F_Init("f"), UserPostAnalysis = F_UserPostAnalysis("f"), - InputVariables = F_variables("o"), - OutputVariables = F_variables("o") + InputVariables = F_variables("f"), + OutputVariables = F_variables("f") ) """ diff --git a/src/daEficas/generator_adao.py b/src/daEficas/generator_adao.py index 1bf9ecd..28b14b7 100644 --- a/src/daEficas/generator_adao.py +++ b/src/daEficas/generator_adao.py @@ -92,6 +92,7 @@ class AdaoGenerator(PythonGenerator): self.add_data("ObservationError") self.add_data("ObservationOperator") + self.add_variables() # Parametres optionnels # Extraction du Study_repertory @@ -189,3 +190,21 @@ class AdaoGenerator(PythonGenerator): self.text_da += "study_config[\"UserPostAnalysis\"] = Analysis_config \n" else: raise Exception('From Type unknown', from_type) + + def add_variables(self): + + # Input variables + if "__ASSIMILATION_STUDY__InputVariables__NAMES" in self.dictMCVal.keys(): + pass + else: + self.text_da += "inputvariables_config = {} \n" + self.text_da += "inputvariables_config[\"adao_default\"] = -1 \n" + self.text_da += "study_config[\"InputVariables\"] = inputvariables_config \n" + + # Output variables + if "__ASSIMILATION_STUDY__OutputVariables__NAMES" in self.dictMCVal.keys(): + pass + else: + self.text_da += "variables_config = {} \n" + self.text_da += "outputvariables_config[\"adao_default\"] = -1 \n" + self.text_da += "study_config[\"OutputVariables\"] = ouputvariables_config \n"