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

Method setUp

Filters/CellGrid/Testing/Python/TestCopyCellGrid.py:33–42  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

31class TestCellGridCopy(Testing.vtkTest):
32
33 def setUp(self):
34 reader = io.vtkCellGridReader()
35 # reader.SetFileName(os.path.join(Testing.VTK_DATA_ROOT, 'Data', 'dgHexahedra.dg'))
36 reader.SetFileName(os.path.join(Testing.VTK_DATA_ROOT, 'Data', 'dgMixed.dg'))
37 reader.UpdateInformation()
38 reader.Update()
39 self.source = reader.GetOutputDataObject(0)
40 # Fetch all the attribute names (which we know are unique for our test data)
41 self.allAttributes = [x.GetName().Data() for x in self.source.GetCellAttributeList()]
42 # print(self.source)
43
44 def checkNumCells(self, query):
45 if query.GetCopyCells():

Callers

nothing calls this directly

Calls 9

vtkCellGridReaderMethod · 0.80
GetCellAttributeListMethod · 0.80
SetFileNameMethod · 0.45
joinMethod · 0.45
UpdateInformationMethod · 0.45
UpdateMethod · 0.45
GetOutputDataObjectMethod · 0.45
DataMethod · 0.45
GetNameMethod · 0.45

Tested by

no test coverage detected