Salome HOME
Set dev version marker to 1.
[modules/paravis.git] / test / VisuPrs / imps / A2.py
index af635342afd63410d74b621eadbd8d1102e8cd8e..bfb44a0c8e0ed2f991285c22d46114aae1e1a1d9 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2010-2014  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
 import time
 from paravistest import datadir
 from presentations import *
-import paravis
 import pvsimple
 
-my_paravis = paravis.myParavis
 sleep_delay = 2
 
 med_file = "pointe.med"
@@ -36,7 +34,7 @@ timestamp = 1
 # 1. Import MED file
 print 'Import "pointe.med"....................',
 med_file_path = datadir + med_file
-my_paravis.ImportFile(med_file_path)
+pvsimple.OpenDataFile(med_file_path)
 med_reader = pvsimple.GetActiveSource()
 
 if med_reader is None:
@@ -63,7 +61,7 @@ print "Set Point Sprite representation"
 scalar_map.Representation = 'Point Sprite'
 
 data_range = get_data_range(med_reader, entity,
-                            field_name, 'Magnitude')
+                           field_name, 'Magnitude')
 mult = abs(0.1 / data_range[1])
 scalar_map.RadiusScalarRange = data_range
 scalar_map.RadiusTransferFunctionEnabled = 1
@@ -76,5 +74,4 @@ scalar_map.RadiusIsProportional = 1
 scalar_map.RadiusProportionalFactor = mult
 
 pvsimple.Render()
-
-
+time.sleep(sleep_delay)