Salome HOME
projects
/
modules
/
paravis.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Set dev version marker to 1.
[modules/paravis.git]
/
test
/
VisuPrs
/
imps
/
A2.py
diff --git
a/test/VisuPrs/imps/A2.py
b/test/VisuPrs/imps/A2.py
index af635342afd63410d74b621eadbd8d1102e8cd8e..bfb44a0c8e0ed2f991285c22d46114aae1e1a1d9 100644
(file)
--- a/
test/VisuPrs/imps/A2.py
+++ b/
test/VisuPrs/imps/A2.py
@@
-1,4
+1,4
@@
-# Copyright (C) 2010-201
4
CEA/DEN, EDF R&D
+# Copyright (C) 2010-201
6
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
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
@@
-22,10
+22,8
@@
import time
from paravistest import datadir
from presentations import *
import time
from paravistest import datadir
from presentations import *
-import paravis
import pvsimple
import pvsimple
-my_paravis = paravis.myParavis
sleep_delay = 2
med_file = "pointe.med"
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
# 1. Import MED file
print 'Import "pointe.med"....................',
med_file_path = datadir + med_file
-
my_paravis.Import
File(med_file_path)
+
pvsimple.OpenData
File(med_file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
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,
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
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()
scalar_map.RadiusProportionalFactor = mult
pvsimple.Render()
-
-
+time.sleep(sleep_delay)