-# 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
from paravistest import datadir
from presentations import *
-import paravis
import pvsimple
-my_paravis = paravis.myParavis
error =0
# Import MED file
file_path = datadir + "Bug891_Box.resu.med"
-my_paravis.ImportFile(file_path)
+pvsimple.OpenDataFile(file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
error = error+1
# Create Scalar Map
-scalarmap = ScalarMapOnField(med_reader, EntityType.NODE, 'RESUMECAEQUI_ELGA_SIGM', 1)
+scalarmap = ScalarMapOnField(med_reader, EntityType.NODE, 'RESUMECAEQUI_ELGA_SIGM__________', 1)
if scalarmap is None:
print "Error!!! ScalarMap is not created"
error = error+1
-
+
scalarmap.Visibility = 1
reset_view()
if error > 0:
raise RuntimeError, "There is(are) some error(s) was(were) found... For more info see ERRORs above..."
-