Number of files in time series

Hi,

I am writing a reader plugin and would like to make the plugin do something slightly different in case a time series is loaded.
How do I get the number of files in a time series or how what is the simplest way to identify whether I have a time series or a single file?

Many thank!

Best,
Thomas

file series are handled through the FileSeriesReader usually, are you doing that already ?

Hi,

the reader itself is inherits from vtkMultiBlockDataSetAlgorithm but is made to work with file series as described here: https://www.paraview.org/Wiki/Animating_legacy_VTK_file_series

Best,
Thomas

Ok, so you want to do something different than what the vtkFileSeriesReader is doing ? In that case you will need to implement your own vtkFileSeriesReader (or inherit from it) in order to do that.

Ah, so far we didn’t include the vtkFileSeriesReader. We took the CDIReader as example and it does what we want.

Thank you very much!