Salome HOME
Merge branch 'V7_dev'
[modules/paravis.git] / test / VisuPrs / GaussPoints / B8.py
index 4797087e09eeb2c2a36d69e00ffb3ea6f3cc90c8..c84edcffb5ae08abe091baa9f665045f9842db2c 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
@@ -25,21 +25,19 @@ import sys
 
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import GaussPointsOnField, EntityType, get_time, process_prs_for_test
-import paravis
 import pvsimple
 
-
 # Directory for saving snapshots
 picturedir = get_picture_dir("GaussPoints/B8")
 if not picturedir.endswith(os.sep):
     picturedir += os.sep
-    
+
 # MED file
 file_name = datadir + "KCOUPLEX1.med"
 field_name = "Head"
 timestamp_nb = -1 # last timestamp
 
-paravis.myParavis.ImportFile(file_name)
+pvsimple.OpenDataFile(file_name)
 med_reader = pvsimple.GetActiveSource()
 if med_reader is None:
     raise RuntimeError("File wasn't imported!!!")