Salome HOME
enable make test
[modules/paravis.git] / test / VisuPrs / dump_study / B0.py
index d12236e8359653b3d25b00c011064200008a9d90..3d6062bdcecdda25ffda8ce665c6b8465ac52906 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
 
 from paravistest import datadir
 from presentations import *
-import paravis
 from pvsimple import *
 
-my_paravis = paravis.myParavis
-
 # 1. TimeStamps.med import
 file_path = datadir + "TimeStamps.med"
-my_paravis.ImportFile(file_path)
+OpenDataFile(file_path)
 med_reader = GetActiveSource()
 if med_reader is None :
     raise RuntimeError, "TimeStamps.med wasn't imported..."
@@ -43,10 +40,10 @@ med_field = "vitesse"
 for name in prs_names:
     print "Creation of ", name, " presentation..."
     if name == "GaussPoints":
-        prs = GaussPointsOnField(med_reader, EntityType.CELL, "pression", 1)  
-       pass
-    else: 
-       prs = eval(name + "OnField(med_reader, EntityType.NODE, med_field, 1)")
+        prs = GaussPointsOnField(med_reader, EntityType.CELL, "pression", 1)
+        pass
+    else:
+        prs = eval(name + "OnField(med_reader, EntityType.NODE, med_field, 1)")
     if prs is None:
         print "ERROR!!! ", name," presentation wasn't created..."
         errors += 1