X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=test%2FVisuPrs%2FScalarMap_On_DeformedShape%2FB3.py;h=17e7de0e9628ca719c2e11f2b60c6bf0d872233c;hb=7a32f97976401d5c016b7b75d63adcb5c023c613;hp=21c83beb603e2035124422c77b6666d9d6d86025;hpb=89c33033151baa33eeac8fb09d9c0488acb43c35;p=modules%2Fparavis.git diff --git a/test/VisuPrs/ScalarMap_On_DeformedShape/B3.py b/test/VisuPrs/ScalarMap_On_DeformedShape/B3.py index 21c83beb..17e7de0e 100644 --- a/test/VisuPrs/ScalarMap_On_DeformedShape/B3.py +++ b/test/VisuPrs/ScalarMap_On_DeformedShape/B3.py @@ -1,9 +1,9 @@ -# Copyright (C) 2010-2012 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 @@ -21,15 +21,12 @@ 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: @@ -172,11 +169,11 @@ print "Changing number of colors:" 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