I have a question about the best way to load a large number of time series .pvtu files into paraview using a python script.
My files are of the format:
There are 200 of them in this particular situation.
I used the python trace tool to capture the events as I selected the series in the interface. In the gui it is as simple as just selecting the “data…pvtu” series. I was surprised that in the python trace each individual file was specified:
data_ = XMLPartitionedUnstructuredGridReader(FileName=[‘data_0.pvtu’, ‘data_1.pvtu’… ‘data_200.pvtu’])
So my questions are:
- Is there a way to wildcard the file names so that each does not need to be individually specified
- Can I pass a list of strings to the reader instead? Then I could just use a loop to build up a list from a base file name.
- Is there a completely better way of doing this that I am not seeing?
My end goal is to do some complicated analysis on a large amount of files.