Salome HOME
projects
/
modules
/
paravis.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Increase image comparison threshold to 6 for MEDREADER_7
[modules/paravis.git]
/
src
/
Plugins
/
MEDReader
/
Test
/
testMEDReader6.py
diff --git
a/src/Plugins/MEDReader/Test/testMEDReader6.py
b/src/Plugins/MEDReader/Test/testMEDReader6.py
index 9b73ce292546594a96e2b3f42f7babc1a45fc6c9..07f0a4cf5939673c6526291e82cc27a1f0a830fd 100644
(file)
--- a/
src/Plugins/MEDReader/Test/testMEDReader6.py
+++ b/
src/Plugins/MEDReader/Test/testMEDReader6.py
@@
-1,5
+1,5
@@
# -*- coding: iso-8859-1 -*-
# -*- coding: iso-8859-1 -*-
-# Copyright (C) 2007-201
6
CEA/DEN, EDF R&D
+# Copyright (C) 2007-201
7
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
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
@@
-22,7
+22,7
@@
from MEDLoader import *
""" This test generate a GaussPoint field on a mesh with groups.
from MEDLoader import *
""" This test generate a GaussPoint field on a mesh with groups.
-The aim of this test is to check that the ExtractGroup works well for
GaussPoints
+The aim of this test is to check that the ExtractGroup works well for
ELGAfieldToPointSprite
"""
fname="testMEDReader6.med"
"""
fname="testMEDReader6.med"
@@
-65,10
+65,10
@@
ExtractGroup1 = ExtractGroup(Input=myMedReader)
ExtractGroup1.UpdatePipelineInformation()
ExtractGroup1.AllGroups = ['GRP_grp0']
ExtractGroup1.UpdatePipelineInformation()
ExtractGroup1.AllGroups = ['GRP_grp0']
-
GaussPoints1 = GaussPoints
(Input=ExtractGroup1)
-
GaussPoints
1.SelectSourceArray = ['CELLS','ELGA@0']
+
ELGAfieldToPointSprite1 = ELGAfieldToPointSprite
(Input=ExtractGroup1)
+
ELGAfieldToPointSprite
1.SelectSourceArray = ['CELLS','ELGA@0']
-Glyph1 = Glyph( Input=
GaussPoints
1, GlyphType="Sphere", GlyphTransform="Transform2" )
+Glyph1 = Glyph( Input=
ELGAfieldToPointSprite
1, GlyphType="Sphere", GlyphTransform="Transform2" )
Glyph1.GlyphType = "Sphere"
Glyph1.Vectors = ['POINTS', '']
Glyph1.ScaleFactor = 0.29
Glyph1.GlyphType = "Sphere"
Glyph1.Vectors = ['POINTS', '']
Glyph1.ScaleFactor = 0.29
@@
-108,5
+108,5
@@
baseline_file = os.path.join(baselinePath, "testMEDReader6.png")
import vtk.test.Testing
vtk.test.Testing.VTK_TEMP_DIR = vtk.util.misc.vtkGetTempDir()
vtk.test.Testing.compareImage(GetActiveView().GetRenderWindow(), baseline_file,
import vtk.test.Testing
vtk.test.Testing.VTK_TEMP_DIR = vtk.util.misc.vtkGetTempDir()
vtk.test.Testing.compareImage(GetActiveView().GetRenderWindow(), baseline_file,
- threshold=
25
)
+ threshold=
1
)
vtk.test.Testing.interact()
vtk.test.Testing.interact()