Salome HOME
Copyrights update 2015.
[modules/paravis.git] / test / VisuPrs / bugs / C6.py
index fa0b19bb80738544d08133e3391fd0f3cc55d19f..88b1facbb5e3015f7c4a04dd4de5600fa9a62eff 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2010-2014  CEA/DEN, EDF R&D
+# Copyright (C) 2010-2015  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
@@ -23,7 +23,7 @@ import sys
 import os
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
-import paravis
+import pvserver as paravis
 import pvsimple
 
 my_paravis = paravis.myParavis
@@ -34,7 +34,7 @@ picturedir = get_picture_dir("bugs/C6")
 med_file_path = datadir + "relachement_brutal_sans_dudg_gauss.med"
 
 print 'Importing "relachement_brutal_sans_dudg_gauss.med"....',
-my_paravis.ImportFile(med_file_path)
+OpenDataFile(med_file_path)
 med_reader = pvsimple.GetActiveSource()
 
 if med_reader is None:
@@ -44,7 +44,7 @@ else:
 
 # 2. Creation of GaussPoints presentations
 mesh_name = "Maillage"
-field_name = "Result_EQUI_ELGA_SIGM"
+field_name = "Result__EQUI_ELGA_SIGM__________"
 timestamp_list = range(1, 5)
 
 for timestamp in timestamp_list: