]> SALOME platform Git repositories - modules/adao.git/commitdiff
Salome HOME
Bug Fix avec UserDataInit + UserPostAnalysis
authorAndré Ribes <andre.ribes@edf.fr>
Fri, 4 May 2012 09:23:05 +0000 (11:23 +0200)
committerAndré Ribes <andre.ribes@edf.fr>
Fri, 4 May 2012 09:23:05 +0000 (11:23 +0200)
src/daSalome/daYacsSchemaCreator/methods.py

index 08c468b43c98ddfea2b0abacb733fdb4a344bb3a..23effd67dce4d1285d308eb142a9c803f41f1fcc 100644 (file)
@@ -405,7 +405,7 @@ def create_yacs_proc(study_config):
       if "UserPostAnalysis" in init_config["Target"]:
         node_script = analysis_node.getScript()
         node_script = "__builtins__[\"init_data\"] = init_data\n" + node_script
-        analysis_node.setScript(opt_node_script)
+        analysis_node.setScript(node_script)
         analysis_node.edAddInputPort("init_data", t_pyobj)
         proc.edAddDFLink(init_node.getOutputPort("init_data"), analysis_node.getInputPort("init_data"))
 
@@ -442,7 +442,7 @@ def create_yacs_proc(study_config):
       if "UserPostAnalysis" in init_config["Target"]:
         node_script = analysis_node.getScript()
         node_script = "__builtins__[\"init_data\"] = init_data\n" + node_script
-        analysis_node.setScript(opt_node_script)
+        analysis_node.setScript(node_script)
         analysis_node.edAddInputPort("init_data", t_pyobj)
         proc.edAddDFLink(init_node.getOutputPort("init_data"), analysis_node.getInputPort("init_data"))