]> SALOME platform Git repositories - modules/superv.git/blobdiff - examples/GraphMerge1.py
Salome HOME
This commit was generated by cvs2git to create branch 'Tag-First-
[modules/superv.git] / examples / GraphMerge1.py
diff --git a/examples/GraphMerge1.py b/examples/GraphMerge1.py
deleted file mode 100755 (executable)
index 8ab8fea..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-
-# Check the Merge of two graphs and python functions definitions
-
-# Creation of GraphSwitch
-from GraphSwitch import *
-
-# Creation of GraphSwitch1
-from GraphSwitch1 import *
-
-# Merge of GraphSwitch1 in GraphSwitch
-GraphSwitch.Merge( GraphSwitch1 )
-
-# Create a variable for each node of GraphSwitch :
-# IsOdd,IsOdd_1,InitLoopSwitch,InitLoop,EndOfInitLoopSwitch,EndOfInitLoop,Switch,Switch_1,EndOfSwitch,EndSwitch
-exec GraphSwitch.ListNodes()
-
-funcname = InitLoopSwitch.PyInitName()
-funcname1 = InitLoop.PyInitName()
-print "Init python function names of InitLoopSwitch and InitLoop :",funcname,funcname1
-InitLoop.PyInit()
-# Erase python functions of InitLoop
-InitLoop.SetPyInit( funcname , [] )
-InitLoop.PyInit()
-InitLoop.SetPyMore( InitLoop.PyMoreName() , [] )
-InitLoop.PyMore()
-InitLoop.SetPyNext( InitLoop.PyNextName() , [] )
-InitLoop.PyNext()
-
-IsOdd.SetPyFunction( IsOdd.PyFuncName() , [] )
-IsOdd.PyFunction()
-
-# Print Input and Output Ports values of InitLoopSwitch
-InitLoopSwitch.PrintPorts()
-
-# Print Input and Output Ports values of InitLoop
-InitLoop.PrintPorts()
-
-# Print Input and Output Ports values of GraphSwitch
-GraphSwitch.PrintPorts()
-
-# Start asynchronous execution of GraphSwitch
-GraphSwitch.Run()
-
-# Wait for completion of GraphSwitch
-GraphSwitch.DoneW()
-
-# Print the state of GraphSwitch
-GraphSwitch.State()
-
-# Print the results of GraphSwitch
-GraphSwitch.PrintPorts()
-
-GraphSwitch.Export( "../GraphPyFunctions.xml" )
-