Commit 7e8272af authored by Cory Quammen's avatar Cory Quammen

Added test to ensure timesteps in XMLs can be read.

Hat tip to Simon Praetorius <> for
pointing out a regression in the XML readers and test data to use
in this test. See
parent b1dffbe3
#!/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