Salome HOME
Merge branch 'V7_dev'
[modules/yacs.git] / src / evalyfx_swig / test.py
index fc42faad5aeb770592ac23019b7895ba3dcad69a..cb01eaa276902ef98c2d3b6e066c771fd18de7f2 100644 (file)
@@ -1,3 +1,22 @@
+# Copyright (C) 2015-2016  CEA/DEN, EDF R&D
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+
 def buildScheme(fname):
     import SALOMERuntime
     import loader
@@ -56,12 +75,13 @@ outps=efx.getFreeOutputPorts()
 # prepare for execution
 inps[0].setDefaultValue(1.1)
 inps[1].setSequenceOfValuesToEval([10.1,10.2,10.3])
-a,b=inps[2].hasSequenceOfValuesToEval()
+a=inps[2].hasSequenceOfValuesToEval()
 inps[2].setSequenceOfValuesToEval([20.1,20.2,30.3,40.4])
-a,b=inps[2].hasSequenceOfValuesToEval()
+a=inps[2].hasSequenceOfValuesToEval()
 inps[2].setSequenceOfValuesToEval([20.1,20.2,30.3])
-efx.lockPortsForEvaluation([outps[0],outps[2]])
+efx.lockPortsForEvaluation([inps[1],inps[2]],[outps[0],outps[2]])
 #
+"""
 g=efx.getUndergroundGeneratedGraph()
 g.saveSchema("toto.xml")
 rss=efx.giveResources()
@@ -70,6 +90,7 @@ a,b=efx.run(session)
 assert(a)
 assert(b==4)
 assert(efx.getResults()==[[11.110000000000001, 11.22, 11.330000000000002], [93.63, 94.26, 124.89000000000001]])
+"""
 #import loader
 #import pilot
 #l=loader.YACSLoader()