(self)
| 79 | return |
| 80 | |
| 81 | def testThird(self): |
| 82 | r = vtkIOFides.vtkFidesReader() |
| 83 | r.SetFileName(VTK_DATA_ROOT + "/Data/vtk-uns-grid-2.json") |
| 84 | r.SetDataSourcePath("source", |
| 85 | VTK_DATA_ROOT + "/Data/tris-blocks-time.bp") |
| 86 | r.UpdateInformation() |
| 87 | r.PrepareNextStep() |
| 88 | r.Update() |
| 89 | r.PrepareNextStep() |
| 90 | r.Update() |
| 91 | r.PrepareNextStep() |
| 92 | r.Update() |
| 93 | |
| 94 | pdsc = r.GetOutputDataObject(0) |
| 95 | self.assertTrue(isinstance(pdsc, vtkPartitionedDataSetCollection)) |
| 96 | pds = pdsc.GetPartitionedDataSet(0) |
| 97 | nParts = pds.GetNumberOfPartitions() |
| 98 | self.assertEqual(nParts, 4) |
| 99 | |
| 100 | ds = pds.GetPartition(0) |
| 101 | self.assertEqual(ds.GetNumberOfCells(), 24) |
| 102 | self.assertEqual(ds.GetNumberOfPoints(), 20) |
| 103 | self.assertEqual(ds.GetPointData().GetNumberOfArrays(), 2) |
| 104 | self.assertEqual(ds.GetPointData().GetArray(0).GetName(), "dpot") |
| 105 | self.assertEqual(ds.GetClassName(), "vtkUnstructuredGrid") |
| 106 | return |
| 107 | |
| 108 | def testFourth(self): |
| 109 | # This test is based on selecting a BP file that contains some attributes that helps Fides |
nothing calls this directly
no test coverage detected