From 9c8ee9786c7350a779190a6a03a41922df9bd5f7 Mon Sep 17 00:00:00 2001 From: abn Date: Fri, 17 Oct 2014 09:53:10 +0200 Subject: [PATCH] Adapted salome_test to new PARAVIS architecture. --- src/KERNEL_PY/salome_test.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/KERNEL_PY/salome_test.py b/src/KERNEL_PY/salome_test.py index fb133259e..c8a2c380a 100755 --- a/src/KERNEL_PY/salome_test.py +++ b/src/KERNEL_PY/salome_test.py @@ -63,7 +63,7 @@ print "======================================================================" print " %d. Check modules availability in the module catalog " % step; step+=1 print "======================================================================" -for module in [ "GEOM", "SMESH", "MEDOPFactory", "PARAVIS"]: +for module in [ "GEOM", "SMESH", "MEDOPFactory", "PVSERVER"]: print print "--- Check %s ..." % module comp = catalog.GetComponent(module) @@ -351,12 +351,12 @@ print "======================================================================" if salome.hasDesktop(): # in gui mode - print "**** Importing paravis... It can take some time." + print "**** Importing pvserver... It can take some time." from presentations import * - import paravis + import pvserver import pvsimple - my_paravis = paravis.myParavis + my_paravis = pvserver.myPVServerService #====================Stage1: Importing MED file==================== @@ -365,7 +365,7 @@ if salome.hasDesktop(): # in gui mode print 'Import "ResOK_0000.med"...............', medFileName = "ResOK_0000.med" medFile = os.path.join(os.getenv('DATA_DIR'), 'MedFiles', medFileName) - my_paravis.ImportFile(medFile) + pvsimple.MEDReader( FileName=medFile ) med_reader = pvsimple.GetActiveSource() if med_reader is None: -- 2.39.2