sizes = self.dictMCVal["__ASSIMILATION_STUDY__InputVariables__SIZES"]
self.text_da += "inputvariables_config = {} \n"
+ self.text_da += "inputvariables_config[\"Order\"] = %s \n" % list(names)
for name, size in zip(names, sizes):
self.text_da += "inputvariables_config[\"%s\"] = %s \n" % (name,size)
self.text_da += "study_config[\"InputVariables\"] = inputvariables_config \n"
sizes = self.dictMCVal["__ASSIMILATION_STUDY__OutputVariables__SIZES"]
self.text_da += "outputvariables_config = {} \n"
+ self.text_da += "outputvariables_config[\"Order\"] = %s \n" % list(names)
for name, size in zip(names, sizes):
self.text_da += "outputvariables_config[\"%s\"] = %s \n" % (name,size)
self.text_da += "study_config[\"OutputVariables\"] = outputvariables_config \n"
if (self.filename == ""):
return "You need to save your case to export it"
+ self.eficas_editor.modified = True
+ self.eficas_editor.saveFile()
filename = self.filename[:self.filename.rfind(".")] + '.py'
if not os.path.exists(filename):
- # On essaye de le créer une fois
- self.eficas_editor.modified = True
- self.eficas_editor.saveFile()
- if not os.path.exists(filename):
- msg = "Cannot find the py file for YACS generation \n"
- msg += "Is your case correct ? \n"
- return msg
+ msg = "Cannot find the py file for YACS generation \n"
+ msg += "Is your case correct ? \n"
+ return msg
if not os.environ.has_key("ADAO_ROOT_DIR"):
return "Please add ADAO_ROOT_DIR to your environnement"