Salome HOME
Increase image comparison threshold to 6 for MEDREADER_7
[modules/paravis.git] / src / Plugins / MEDReader / Test / testMEDReader21.py
index 1159dd541c74de763f12bbf7be4fb4213ff53abe..6a85a431aba084990558c1101d9a33a91800449b 100644 (file)
@@ -1,5 +1,5 @@
 #  -*- coding: iso-8859-1 -*-
-# Copyright (C) 2015-2016  CEA/DEN, EDF R&D
+# Copyright (C) 2015-2017  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
@@ -54,15 +54,6 @@ testTotomedDisplay = Show(testTotomed, renderView1)
 testTotomedDisplay.ColorArrayName = [None, '']
 testTotomedDisplay.GlyphType = 'Arrow'
 testTotomedDisplay.ScalarOpacityUnitDistance = 1.5874010519681994
-testTotomedDisplay.SelectUncertaintyArray = [None, '']
-testTotomedDisplay.UncertaintyTransferFunction = 'PiecewiseFunction'
-testTotomedDisplay.OpacityArray = [None, '']
-testTotomedDisplay.RadiusArray = [None, '']
-testTotomedDisplay.RadiusRange = [0.0, 2.0]
-testTotomedDisplay.ConstantRadius = 2.0
-testTotomedDisplay.PointSpriteDefaultsInitialized = 1
-testTotomedDisplay.SelectInputVectors = [None, '']
-testTotomedDisplay.WriteLog = ''
 
 # reset view to fit data
 renderView1.ResetCamera()
@@ -76,8 +67,8 @@ renderView1.CameraViewUp = [1.0, 1.0, 0.0]
 # set scalar coloring
 ColorBy(testTotomedDisplay, ('FIELD', 'vtkBlockColors'))
 
-# show color bar/color legend
-testTotomedDisplay.SetScalarBarVisibility(renderView1, True)
+# hide color bar/color legend
+testTotomedDisplay.SetScalarBarVisibility(renderView1, False)
 
 # get color transfer function/color map for 'vtkBlockColors'
 vtkBlockColorsLUT = GetColorTransferFunction('vtkBlockColors')
@@ -86,7 +77,7 @@ vtkBlockColorsLUT = GetColorTransferFunction('vtkBlockColors')
 vtkBlockColorsPWF = GetOpacityTransferFunction('vtkBlockColors')
 
 # create a new 'ELNO Mesh'
-eLNOMesh1 = ELNOMesh(Input=testTotomed)
+eLNOMesh1 = ELNOfieldToSurface(Input=testTotomed)
 
 # Properties modified on eLNOMesh1
 eLNOMesh1.ShrinkFactor = 0.5 # <- test is here !!!!!!!!
@@ -97,15 +88,6 @@ eLNOMesh1Display = Show(eLNOMesh1, renderView1)
 eLNOMesh1Display.ColorArrayName = [None, '']
 eLNOMesh1Display.GlyphType = 'Arrow'
 eLNOMesh1Display.ScalarOpacityUnitDistance = 1.1905507889761495
-eLNOMesh1Display.SelectUncertaintyArray = ['POINTS', 'MyField']
-eLNOMesh1Display.UncertaintyTransferFunction = 'PiecewiseFunction'
-eLNOMesh1Display.OpacityArray = [None, '']
-eLNOMesh1Display.RadiusArray = [None, '']
-eLNOMesh1Display.RadiusRange = [0.25, 1.75]
-eLNOMesh1Display.ConstantRadius = 1.75
-eLNOMesh1Display.PointSpriteDefaultsInitialized = 1
-eLNOMesh1Display.SelectInputVectors = [None, '']
-eLNOMesh1Display.WriteLog = ''
 
 # hide data in view
 Hide(testTotomed, renderView1)
@@ -152,18 +134,9 @@ glyph1Display = Show(glyph1, renderView1)
 glyph1Display.ColorArrayName = ['POINTS', 'MyField']
 glyph1Display.LookupTable = myFieldLUT
 glyph1Display.GlyphType = 'Arrow'
-glyph1Display.SelectUncertaintyArray = ['POINTS', 'MyField']
-glyph1Display.UncertaintyTransferFunction = 'PiecewiseFunction'
-glyph1Display.OpacityArray = [None, '']
-glyph1Display.RadiusArray = [None, '']
-glyph1Display.RadiusRange = [0.17688040435314178, 1.8231196403503418]
-glyph1Display.ConstantRadius = 1.8231196403503418
-glyph1Display.PointSpriteDefaultsInitialized = 1
-glyph1Display.SelectInputVectors = ['POINTS', 'Normals']
-glyph1Display.WriteLog = ''
 
-# show color bar/color legend
-glyph1Display.SetScalarBarVisibility(renderView1, True)
+# hide color bar/color legend
+glyph1Display.SetScalarBarVisibility(renderView1, False)
 
 #### saving camera placements for all active views
 
@@ -186,6 +159,5 @@ except:
 baseline_file = os.path.join(baselinePath, imgName)
 import vtk.test.Testing
 vtk.test.Testing.VTK_TEMP_DIR = vtk.util.misc.vtkGetTempDir()
-vtk.test.Testing.compareImage(GetActiveView().GetRenderWindow(), baseline_file, threshold=25)
+vtk.test.Testing.compareImage(GetActiveView().GetRenderWindow(), baseline_file, threshold=1)
 vtk.test.Testing.interact()
-