-# 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
-
#====================Stage1: Import MED file=========================
print 'Importing "fra.med"...................',
medFile = datadir + "fra.med"
-my_paravis.ImportFile(medFile)
+pvsimple.OpenDataFile(medFile)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
print "Default number of colors: ", lt.NumberOfTableValues
lt.Discretize = 1
-print "Set negative number of colors"
-num = -128
-lt.NumberOfTableValues = num
-print "Number of colors: ", lt.NumberOfTableValues
-pvsimple.Render(view)
+#print "Set negative number of colors"
+#num = -128
+#lt.NumberOfTableValues = num
+#print "Number of colors: ", lt.NumberOfTableValues
+#pvsimple.Render(view)
print "Set zero number of colors"
num = 0