Commit a72ebc4f authored by Cory Quammen's avatar Cory Quammen Committed by Kitware Robot

Merge topic 'xml-time-series-test'

7e8272af Added test to ensure timesteps in XMLs can be read.
Acked-by: Kitware Robot's avatarKitware Robot <>
Acked-by: T.J. Corona's avatarT.J. Corona <>
Merge-request: !5019
parents b1dffbe3 7e8272af
#!/usr/bin/env python
# Test reading of XML file with timesteps
import vtk.vtkIOXML
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
reader = vtk.vtkIOXML.vtkXMLUnstructuredGridReader()
reader.SetFileName(VTK_DATA_ROOT + "/Data/cube-with-time.vtu")
# Ensure the reader identifies the timesteps in the file
assert reader.GetNumberOfTimeSteps() == 8
Markdown is supported
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