Salome HOME
Merge branch 'V7_dev'
[modules/paravis.git] / test / VisuPrs / bugs / A9.py
index 6e1000eed15bfc4e0aa2584d8a82b094700d8563..9c7985d95691251730109f0cebcc9ce5b67e5ce1 100644 (file)
@@ -1,9 +1,9 @@
-# Copyright (C) 2010-2013  CEA/DEN, EDF R&D
+# Copyright (C) 2010-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.
+# 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
@@ -24,20 +24,16 @@ import sys
 
 from paravistest import datadir, get_picture_dir, pictureext
 from presentations import *
-import paravis
 import pvsimple
 
-my_paravis = paravis.myParavis
-
-os.environ["PARAVIS_TEST_PICS"] = sys.argv[1]
 picturedir = get_picture_dir("bugs/A9")
 
 # 1. Step1: Import MED file
 print "**** Step1: Importing MED file"
 
 print 'Import "sortie_med_volumique.med"...............',
-file_path = datadir + "sortie_med_volumique_v3.0.6.med"
-my_paravis.ImportFile(file_path)
+file_path = datadir + "sortie_med_volumique.med"
+pvsimple.OpenDataFile(file_path)
 med_reader = pvsimple.GetActiveSource()
 
 if med_reader is None:
@@ -52,8 +48,8 @@ if view is None:
 else:
     reset_view(view)
     print "OK"
-    
-mesh_name = 'Volume_fluide'
+
+mesh_name = 'Volume fluide'
 cell_entity = EntityType.CELL
 node_entity = EntityType.NODE