Commit 114c7cf3 authored by Marcus D. Hanwell's avatar Marcus D. Hanwell
Browse files

STYLE: Removed semicolons, tabs in Python tests.

Thanks to Robert Kerr for pointing out that the Python tests had some
semicolons lurking from their conversion to Python. Also removed a stray
tab character that had crept in.
parent 933b093e
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Run this test like so:
# vtkpython TestBarGraph.py -D $VTK_DATA_ROOT \
......@@ -9,9 +10,9 @@ import vtk
import vtk.test.Testing
import math
data_2008 = [10822, 10941, 9979, 10370, 9460, 11228, 15093, 12231, 10160, 9816, 9384, 7892];
data_2009 = [9058, 9474, 9979, 9408, 8900, 11569, 14688, 12231, 10294, 9585, 8957, 8590];
data_2010 = [9058, 10941, 9979, 10270, 8900, 11228, 14688, 12231, 10160, 9585, 9384, 8590];
data_2008 = [10822, 10941, 9979, 10370, 9460, 11228, 15093, 12231, 10160, 9816, 9384, 7892]
data_2009 = [9058, 9474, 9979, 9408, 8900, 11569, 14688, 12231, 10294, 9585, 8957, 8590]
data_2010 = [9058, 10941, 9979, 10270, 8900, 11228, 14688, 12231, 10160, 9585, 9384, 8590]
class TestBarGraph(vtk.test.Testing.vtkTest):
def testBarGraph(self):
......@@ -59,14 +60,14 @@ class TestBarGraph(vtk.test.Testing.vtkTest):
line = chart.AddPlot(2)
line.SetInput(table,0,2)
line.SetColor(255,0,0,255);
line.SetColor(255,0,0,255)
line = chart.AddPlot(2)
line.SetInput(table,0,3)
line.SetColor(0,0,255,255);
line.SetColor(0,0,255,255)
view.GetRenderWindow().SetMultiSamples(0)
view.GetRenderWindow().Render()
view.GetRenderWindow().Render()
img_file = "TestBarGraph.png"
vtk.test.Testing.compareImage(view.GetRenderWindow(),vtk.test.Testing.getAbsImagePath(img_file),threshold=25)
......
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Run this test like so:
# vtkpython TestLinePlot.py -D $VTK_DATA_ROOT \
......@@ -57,16 +58,16 @@ class TestLinePlot(vtk.test.Testing.vtkTest):
line = chart.AddPlot(0)
line.SetInput(table,0,2)
line.SetColor(255,0,0,255);
line.SetColor(255,0,0,255)
line.SetWidth(5.0)
line = chart.AddPlot(0)
line.SetInput(table,0,3)
line.SetColor(0,0,255,255);
line.SetColor(0,0,255,255)
line.SetWidth(4.0)
view.GetRenderWindow().SetMultiSamples(0)
view.GetRenderWindow().Render()
view.GetRenderWindow().Render()
img_file = "TestLinePlot.png"
vtk.test.Testing.compareImage(view.GetRenderWindow(),vtk.test.Testing.getAbsImagePath(img_file),threshold=25)
......
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Run this test like so:
# vtkpython TestStackedPlot.py -D $VTK_DATA_ROOT \
......@@ -9,13 +10,13 @@ import vtk
import vtk.test.Testing
import math
month_labels = ["Jan", "Feb", "Mar", "Apr", "May", "Jun",
"Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
book = [5675, 5902, 6388, 5990, 5575, 7393, 9878, 8082, 6417, 5946, 5526, 5166];
new_popular = [701, 687, 736, 696, 750, 814, 923, 860, 786, 735, 680, 741];
periodical = [184, 176, 166, 131, 171, 191, 231, 166, 197, 162, 152, 143];
audiobook = [903, 1038, 987, 1073, 1144, 1203, 1173, 1196, 1213, 1076, 926, 874];
video = [1524, 1565, 1627, 1445, 1179, 1816, 2293, 1811, 1588, 1561, 1542, 1563];
month_labels = ["Jan", "Feb", "Mar", "Apr", "May", "Jun",
"Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
book = [5675, 5902, 6388, 5990, 5575, 7393, 9878, 8082, 6417, 5946, 5526, 5166]
new_popular = [701, 687, 736, 696, 750, 814, 923, 860, 786, 735, 680, 741]
periodical = [184, 176, 166, 131, 171, 191, 231, 166, 197, 162, 152, 143]
audiobook = [903, 1038, 987, 1073, 1144, 1203, 1173, 1196, 1213, 1076, 926, 874]
video = [1524, 1565, 1627, 1445, 1179, 1816, 2293, 1811, 1588, 1561, 1542, 1563]
class TestStackedPlot(vtk.test.Testing.vtkTest):
def testStackedPlot(self):
......@@ -56,7 +57,7 @@ class TestStackedPlot(vtk.test.Testing.vtkTest):
for i in range(0,numMonths):
arrMonthLabels.InsertNextValue(month_labels[i])
arrMonthPositions.InsertNextValue(float(i));
arrMonthPositions.InsertNextValue(float(i))
arrMonth.InsertNextValue(i)
arrBooks.InsertNextValue(book[i])
......@@ -94,7 +95,7 @@ class TestStackedPlot(vtk.test.Testing.vtkTest):
stack.SetColorSeries(colorSeries)
view.GetRenderWindow().SetMultiSamples(0)
view.GetRenderWindow().Render()
view.GetRenderWindow().Render()
img_file = "TestStackedPlot.png"
vtk.test.Testing.compareImage(view.GetRenderWindow(),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment