From: vsr Date: Mon, 20 May 2013 09:19:09 +0000 (+0000) Subject: Remove VISU module (according to the decision of CoTech) X-Git-Tag: V7_2_0_public X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f4ce7cc171604231025ff053c5eec9607f736aaf;p=modules%2Fkernel.git Remove VISU module (according to the decision of CoTech) --- diff --git a/src/KERNEL_PY/salome_test.py b/src/KERNEL_PY/salome_test.py index 973c8dfa4..45fc455e6 100755 --- a/src/KERNEL_PY/salome_test.py +++ b/src/KERNEL_PY/salome_test.py @@ -22,7 +22,7 @@ # print -print "Perform quick test of the application by loading of the GEOM, SMESH, VISU, MED" +print "Perform quick test of the application by loading of the GEOM, SMESH, MED" print "components and doing some operation within the components." print @@ -63,33 +63,14 @@ print "======================================================================" print " %d. Check modules availability in the module catalog " % step; step+=1 print "======================================================================" -print -print "--- Check GEOM ..." -comp = catalog.GetComponent("GEOM") -if not comp: - raise RuntimeError, "Component GEOM is not found in Module Catalog." -print "OK" - -print -print "--- Check SMESH ..." -comp = catalog.GetComponent("SMESH") -if not comp: - raise RuntimeError, "Component SMESH is not found in Module Catalog." -print "OK" - -print -print "--- Check MED ..." -comp = catalog.GetComponent("MED") -if not comp: - raise RuntimeError, "Component MED is not found in Module Catalog." -print "OK" - -print -print "--- Check VISU ..." -comp = catalog.GetComponent("VISU") -if not comp: - raise RuntimeError, "Component VISU is not found in Module Catalog." -print "OK" +for module in [ "GEOM", "SMESH", "MED", "PARAVIS"]: + print + print "--- Check %s ..." % module + comp = catalog.GetComponent(module) + if not comp: + raise RuntimeError, "Component %s is not found in Module Catalog." % module + print "OK" + pass print @@ -361,54 +342,6 @@ else: print -print "======================================================================" -print " %d. Test Post-Pro " % step; step+=1 -print "======================================================================" - -import VISU - -medFileName = "pointe.med" -medFile = os.path.join(os.getenv('DATA_DIR'), 'MedFiles', medFileName) - -aMeshName = "maa1" -anEntity = VISU.NODE -field_name = "fieldnodedouble" - -if salome.hasDesktop(): # in gui mode - - import visu_gui - visu = salome.lcc.FindOrLoadComponent("FactoryServer", "VISU") - - print - print "--- Import med file %s to the VISU ..." % medFile - result2 = visu.ImportFile(medFile); - if not result2: - raise RuntimeError, "Can't import file" - print "OK" - - print - print "--- Create mesh presentation ..." - mesh2 = visu.MeshOnEntity(result2, aMeshName, anEntity); - if not mesh2: - raise RuntimeError, "Can't create mesh presentation" - print "OK" - - print - print "--- Create scalar map ..." - scalarMap2 = visu.ScalarMapOnField(result2, aMeshName, anEntity, field_name, 3) - if not scalarMap2: - raise RuntimeError, "Can't create scalar map" - print "OK" - pass - -else: # not in gui mode, visu can not be tested - - print - print "VISU module requires SALOME to be running in GUI mode." - print - print "Skipping test for VISU..." - pass - # ---- update object browser if salome.hasDesktop(): salome.sg.updateObjBrowser(1);