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

Method testMetaReader

IO/Geometry/Testing/Python/Plot3D.py:67–71  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

65 self.assertEqual(int(pd.GetArray("StagnationEnergy").GetValue(3)), 1)
66
67 def testMetaReader(self):
68 r = vtkPlot3DMetaReader()
69 r.SetFileName(VTK_DATA_ROOT + "/Data/multi.p3d")
70 r.Update()
71 self.assertTrue(r.GetOutput().GetBlock(0).GetPointData().GetArray("Function0"))
72
73if __name__ == "__main__":
74 Testing.main([(TestPlot3D, 'test')])

Callers

nothing calls this directly

Calls 6

GetBlockMethod · 0.80
SetFileNameMethod · 0.45
UpdateMethod · 0.45
GetArrayMethod · 0.45
GetPointDataMethod · 0.45
GetOutputMethod · 0.45

Tested by

no test coverage detected