From 9f795a7cd6680a84f5293381f71cee940e041261 Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Thu, 5 Jul 2018 13:28:14 +0200 Subject: [PATCH] vtk.util.misc.vtkGetTempDir + InsideOut->Invert --- src/Plugins/MEDReader/Test/testMEDReader0.py | 1 + src/Plugins/MEDReader/Test/testMEDReader10.py | 1 + src/Plugins/MEDReader/Test/testMEDReader13.py | 1 + src/Plugins/MEDReader/Test/testMEDReader14.py | 1 + src/Plugins/MEDReader/Test/testMEDReader15.py | 1 + src/Plugins/MEDReader/Test/testMEDReader19.py | 1 + src/Plugins/MEDReader/Test/testMEDReader2.py | 3 ++- src/Plugins/MEDReader/Test/testMEDReader20.py | 1 + src/Plugins/MEDReader/Test/testMEDReader3.py | 1 + src/Plugins/MEDReader/Test/testMEDReader4.py | 1 + src/Plugins/MEDReader/Test/testMEDReader5.py | 3 ++- src/Plugins/MEDReader/Test/testMEDReader6.py | 1 + src/Plugins/MEDReader/Test/testMEDReader7.py | 1 + src/Plugins/MEDReader/Test/testMEDReader8.py | 1 + 14 files changed, 16 insertions(+), 2 deletions(-) diff --git a/src/Plugins/MEDReader/Test/testMEDReader0.py b/src/Plugins/MEDReader/Test/testMEDReader0.py index edb31676..82af3904 100644 --- a/src/Plugins/MEDReader/Test/testMEDReader0.py +++ b/src/Plugins/MEDReader/Test/testMEDReader0.py @@ -130,6 +130,7 @@ except: exit(1) baseline_file = os.path.join(baselinePath, "testMEDReader0.png") import vtk.test.Testing +from vtk.util.misc import vtkGetTempDir vtk.test.Testing.VTK_TEMP_DIR = vtk.util.misc.vtkGetTempDir() vtk.test.Testing.compareImage(GetActiveView().GetRenderWindow(), baseline_file, threshold=1) diff --git a/src/Plugins/MEDReader/Test/testMEDReader10.py b/src/Plugins/MEDReader/Test/testMEDReader10.py index d697340b..832c910f 100644 --- a/src/Plugins/MEDReader/Test/testMEDReader10.py +++ b/src/Plugins/MEDReader/Test/testMEDReader10.py @@ -118,6 +118,7 @@ except: exit(1) baseline_file = os.path.join(baselinePath, "testMEDReader10.png") import vtk.test.Testing +from vtk.util.misc import vtkGetTempDir vtk.test.Testing.VTK_TEMP_DIR = vtk.util.misc.vtkGetTempDir() vtk.test.Testing.compareImage(GetActiveView().GetRenderWindow(), baseline_file, threshold=1) diff --git a/src/Plugins/MEDReader/Test/testMEDReader13.py b/src/Plugins/MEDReader/Test/testMEDReader13.py index 01828c39..8f580390 100644 --- a/src/Plugins/MEDReader/Test/testMEDReader13.py +++ b/src/Plugins/MEDReader/Test/testMEDReader13.py @@ -87,6 +87,7 @@ except: exit(1) baseline_file = os.path.join(baselinePath, "testMEDReader13.png") import vtk.test.Testing +from vtk.util.misc import vtkGetTempDir vtk.test.Testing.VTK_TEMP_DIR = vtk.util.misc.vtkGetTempDir() vtk.test.Testing.compareImage(GetActiveView().GetRenderWindow(), baseline_file, threshold=1) diff --git a/src/Plugins/MEDReader/Test/testMEDReader14.py b/src/Plugins/MEDReader/Test/testMEDReader14.py index b9f2aaaf..3d4b785c 100644 --- a/src/Plugins/MEDReader/Test/testMEDReader14.py +++ b/src/Plugins/MEDReader/Test/testMEDReader14.py @@ -170,6 +170,7 @@ except: exit(1) baseline_file = os.path.join(baselinePath, "testMEDReader14.png") import vtk.test.Testing +from vtk.util.misc import vtkGetTempDir vtk.test.Testing.VTK_TEMP_DIR = vtk.util.misc.vtkGetTempDir() vtk.test.Testing.compareImage(renderView1.GetRenderWindow(), baseline_file, threshold=1) diff --git a/src/Plugins/MEDReader/Test/testMEDReader15.py b/src/Plugins/MEDReader/Test/testMEDReader15.py index 3902efde..1af02442 100644 --- a/src/Plugins/MEDReader/Test/testMEDReader15.py +++ b/src/Plugins/MEDReader/Test/testMEDReader15.py @@ -83,6 +83,7 @@ except: exit(1) baseline_file = os.path.join(baselinePath, "testMEDReader15.png") import vtk.test.Testing +from vtk.util.misc import vtkGetTempDir vtk.test.Testing.VTK_TEMP_DIR = vtk.util.misc.vtkGetTempDir() vtk.test.Testing.compareImage(GetActiveView().GetRenderWindow(), baseline_file, threshold=1) diff --git a/src/Plugins/MEDReader/Test/testMEDReader19.py b/src/Plugins/MEDReader/Test/testMEDReader19.py index d40f56d1..6fbe63ec 100644 --- a/src/Plugins/MEDReader/Test/testMEDReader19.py +++ b/src/Plugins/MEDReader/Test/testMEDReader19.py @@ -97,6 +97,7 @@ except: exit(1) baseline_file = os.path.join(baselinePath, imgName) import vtk.test.Testing +from vtk.util.misc import vtkGetTempDir vtk.test.Testing.VTK_TEMP_DIR = vtk.util.misc.vtkGetTempDir() vtk.test.Testing.compareImage(GetActiveView().GetRenderWindow(), baseline_file, threshold=1) vtk.test.Testing.interact() diff --git a/src/Plugins/MEDReader/Test/testMEDReader2.py b/src/Plugins/MEDReader/Test/testMEDReader2.py index b2fe0897..1be452a0 100644 --- a/src/Plugins/MEDReader/Test/testMEDReader2.py +++ b/src/Plugins/MEDReader/Test/testMEDReader2.py @@ -66,7 +66,7 @@ GroupDatasets1=GroupDatasets(Input=[testMEDReader1,testMEDReader2]) Clip1 = Clip(ClipType="Plane",Input=GroupDatasets1) Clip1.Scalars=['FamilyIdCell'] Clip1.ClipType.Origin=[3.0, 3.0, 3.0] -Clip1.InsideOut=1 +Clip1.Invert=1 Clip1.ClipType.Normal=[0.9255623174457069, 0.0027407477590518157, 0.378585373233375] Clip1.Scalars=['CELLS'] @@ -115,6 +115,7 @@ except: exit(1) baseline_file = os.path.join(baselinePath, "testMEDReader2.png") import vtk.test.Testing +from vtk.util.misc import vtkGetTempDir vtk.test.Testing.VTK_TEMP_DIR = vtk.util.misc.vtkGetTempDir() vtk.test.Testing.compareImage(GetActiveView().GetRenderWindow(), baseline_file, threshold=1) diff --git a/src/Plugins/MEDReader/Test/testMEDReader20.py b/src/Plugins/MEDReader/Test/testMEDReader20.py index 3b45a318..4ebc315e 100644 --- a/src/Plugins/MEDReader/Test/testMEDReader20.py +++ b/src/Plugins/MEDReader/Test/testMEDReader20.py @@ -146,6 +146,7 @@ except: exit(1) baseline_file = os.path.join(baselinePath,png) import vtk.test.Testing +from vtk.util.misc import vtkGetTempDir vtk.test.Testing.VTK_TEMP_DIR = vtk.util.misc.vtkGetTempDir() vtk.test.Testing.compareImage(GetActiveView().GetRenderWindow(), baseline_file, threshold=1) vtk.test.Testing.interact() diff --git a/src/Plugins/MEDReader/Test/testMEDReader3.py b/src/Plugins/MEDReader/Test/testMEDReader3.py index ea4d5872..d57e2470 100644 --- a/src/Plugins/MEDReader/Test/testMEDReader3.py +++ b/src/Plugins/MEDReader/Test/testMEDReader3.py @@ -137,6 +137,7 @@ except: exit(1) baseline_file = os.path.join(baselinePath, "testMEDReader3.png") import vtk.test.Testing +from vtk.util.misc import vtkGetTempDir vtk.test.Testing.VTK_TEMP_DIR = vtk.util.misc.vtkGetTempDir() vtk.test.Testing.compareImage(GetActiveView().GetRenderWindow(), baseline_file, threshold=1) diff --git a/src/Plugins/MEDReader/Test/testMEDReader4.py b/src/Plugins/MEDReader/Test/testMEDReader4.py index 98668083..59c0948f 100644 --- a/src/Plugins/MEDReader/Test/testMEDReader4.py +++ b/src/Plugins/MEDReader/Test/testMEDReader4.py @@ -104,6 +104,7 @@ except: exit(1) baseline_file = os.path.join(baselinePath, "testMEDReader4.png") import vtk.test.Testing +from vtk.util.misc import vtkGetTempDir vtk.test.Testing.VTK_TEMP_DIR = vtk.util.misc.vtkGetTempDir() vtk.test.Testing.compareImage(GetActiveView().GetRenderWindow(), baseline_file, threshold=1) diff --git a/src/Plugins/MEDReader/Test/testMEDReader5.py b/src/Plugins/MEDReader/Test/testMEDReader5.py index 5aa23ef6..98d9c027 100644 --- a/src/Plugins/MEDReader/Test/testMEDReader5.py +++ b/src/Plugins/MEDReader/Test/testMEDReader5.py @@ -83,7 +83,7 @@ Clip1.Scalars = ['POINTS', 'FamilyIdNode'] Clip1.ClipType.Origin = [2.0, 2.0, 2.0] Clip1.ClipType = "Plane" Clip1.ClipType.Normal = [0.04207410474474753, 0.9319448861971525, 0.3601506612529047] -Clip1.InsideOut = 1 +Clip1.Invert = 1 DataRepresentation2 = Show() DataRepresentation2.EdgeColor = [0.0, 0.0, 0.5000076295109483] @@ -121,6 +121,7 @@ except: exit(1) baseline_file = os.path.join(baselinePath, "testMEDReader5.png") import vtk.test.Testing +from vtk.util.misc import vtkGetTempDir vtk.test.Testing.VTK_TEMP_DIR = vtk.util.misc.vtkGetTempDir() vtk.test.Testing.compareImage(GetActiveView().GetRenderWindow(), baseline_file, threshold=1) diff --git a/src/Plugins/MEDReader/Test/testMEDReader6.py b/src/Plugins/MEDReader/Test/testMEDReader6.py index d5a9d046..fa24b7b8 100644 --- a/src/Plugins/MEDReader/Test/testMEDReader6.py +++ b/src/Plugins/MEDReader/Test/testMEDReader6.py @@ -106,6 +106,7 @@ except: exit(1) baseline_file = os.path.join(baselinePath, "testMEDReader6.png") import vtk.test.Testing +from vtk.util.misc import vtkGetTempDir vtk.test.Testing.VTK_TEMP_DIR = vtk.util.misc.vtkGetTempDir() vtk.test.Testing.compareImage(GetActiveView().GetRenderWindow(), baseline_file, threshold=1) diff --git a/src/Plugins/MEDReader/Test/testMEDReader7.py b/src/Plugins/MEDReader/Test/testMEDReader7.py index 29c660fc..14afd22e 100644 --- a/src/Plugins/MEDReader/Test/testMEDReader7.py +++ b/src/Plugins/MEDReader/Test/testMEDReader7.py @@ -106,6 +106,7 @@ except: exit(1) baseline_file = os.path.join(baselinePath, "testMEDReader7.png") import vtk.test.Testing +from vtk.util.misc import vtkGetTempDir vtk.test.Testing.VTK_TEMP_DIR = vtk.util.misc.vtkGetTempDir() vtk.test.Testing.compareImage(GetActiveView().GetRenderWindow(), baseline_file, threshold=6) diff --git a/src/Plugins/MEDReader/Test/testMEDReader8.py b/src/Plugins/MEDReader/Test/testMEDReader8.py index 639538c1..e4dfb78f 100644 --- a/src/Plugins/MEDReader/Test/testMEDReader8.py +++ b/src/Plugins/MEDReader/Test/testMEDReader8.py @@ -116,6 +116,7 @@ except: exit(1) baseline_file = os.path.join(baselinePath, "testMEDReader8.png") import vtk.test.Testing +from vtk.util.misc import vtkGetTempDir vtk.test.Testing.VTK_TEMP_DIR = vtk.util.misc.vtkGetTempDir() vtk.test.Testing.compareImage(GetActiveView().GetRenderWindow(), baseline_file, threshold=1) -- 2.39.2