X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPlugins%2FMEDReader%2FTest%2FtestMEDReader11.py;h=95a7b258199c164708aab8a69621efe9b8b6c154;hb=c6ff7f6dfc471ef0fe7ab45e171e05a6335512a9;hp=a659175ae7d12d9bbf0b14e0509efb9ccc7051be;hpb=ab9191ed3dbce37abd2f3f07715108a4fe01e858;p=modules%2Fparavis.git diff --git a/src/Plugins/MEDReader/Test/testMEDReader11.py b/src/Plugins/MEDReader/Test/testMEDReader11.py index a659175a..95a7b258 100644 --- a/src/Plugins/MEDReader/Test/testMEDReader11.py +++ b/src/Plugins/MEDReader/Test/testMEDReader11.py @@ -135,9 +135,6 @@ fs.pushField(fmts0) fs.write(fname,0) ################### MED write is done -> Go to MEDReader from paraview.simple import * -try: paraview.simple -except: from paraview.simple import * -paraview.simple._DisableFirstRenderCameraReset() testMEDReader11_med = MEDReader( FileName=fname ) @@ -158,9 +155,8 @@ a1_ENTHALPIE_PiecewiseFunction = CreatePiecewiseFunction( Points=[1278022.919558 DataRepresentation1.Representation = 'Wireframe' DataRepresentation1.ScalarOpacityFunction = a1_ENTHALPIE_PiecewiseFunction -DataRepresentation1.ColorArrayName = ('CELL_DATA', 'ENTHALPIE') +DataRepresentation1.ColorArrayName = ('CELLS', 'ENTHALPIE') DataRepresentation1.LookupTable = a1_ENTHALPIE_PVLookupTable -DataRepresentation1.ColorAttributeType = 'CELL_DATA' testMEDReader11_med = MEDReader( FileName=fname ) @@ -181,9 +177,8 @@ a1_VITESSEX_PVLookupTable = GetLookupTableForArray( "VITESSE X", 1, RGBPoints=[0 a1_VITESSEX_PiecewiseFunction = CreatePiecewiseFunction( Points=[0.0, 0.0, 0.5, 0.0, 1e-16, 1.0, 0.5, 0.0] ) DataRepresentation2.ScalarOpacityFunction = a1_VITESSEX_PiecewiseFunction -DataRepresentation2.ColorArrayName = ('CELL_DATA', 'VITESSE X') +DataRepresentation2.ColorArrayName = ('CELLS', 'VITESSE X') DataRepresentation2.LookupTable = a1_VITESSEX_PVLookupTable -DataRepresentation2.ColorAttributeType = 'CELL_DATA' a1_VITESSEX_PVLookupTable.RGBPoints = [-0.04176214531137861, 0.23, 0.299, 0.754, 0.35689831830849095, 0.865, 0.865, 0.865, 0.7555587819283606, 0.706, 0.016, 0.15] a1_VITESSEX_PVLookupTable.ScalarOpacityFunction = a1_VITESSEX_PiecewiseFunction