MCPcopy Create free account
hub / github.com/Kitware/VTK / setUp

Method setUp

Filters/CellGrid/Testing/Python/TestCellGridRange.py:24–31  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

22class TestCellGridRange(Testing.vtkTest):
23
24 def setUp(self):
25 self.reader = io.vtkCellGridReader()
26 self.reader.SetFileName(os.path.join(Testing.VTK_DATA_ROOT, 'Data', 'dgTetrahedra.dg'))
27 # reader.SetFileName(os.path.join(Testing.VTK_DATA_ROOT, 'Data', 'dgMixed.dg'))
28 self.reader.UpdateInformation()
29 self.reader.Update()
30 self.source = self.reader.GetOutputDataObject(0)
31 # print(self.source)
32
33 def assertRangesIdentical(self, actual, expected):
34 # TODO: Compare floating-point values with a tolerance

Callers

nothing calls this directly

Calls 6

vtkCellGridReaderMethod · 0.80
SetFileNameMethod · 0.45
joinMethod · 0.45
UpdateInformationMethod · 0.45
UpdateMethod · 0.45
GetOutputDataObjectMethod · 0.45

Tested by

no test coverage detected