SeriesReader#
- class SeriesReader(*args, **kwargs)[source]#
Class for reading .series file supported by ParaView.
Added in version 0.47.0.
Examples#
Download Python source code | Download Jupyter notebook
>>> import pyvista as pv
>>> from pyvista import examples
>>> from pathlib import Path
>>> filename = examples.download_file('vtu_series/wavy.zip')
>>> Path(filename[0]).name
'mesh.vtu.series'
>>> reader = pv.get_reader(filename[0])
>>> reader.time_values
[0.0, 1.0, 2.0, 3.0, ... 12.0, 13.0, 14.0]
>>> reader.set_active_time_point(5)
>>> reader.active_time_value
5.0
>>> mesh = reader.read()
>>> mesh.plot(scalars='z')
Inheritance#
Inherited members are documented on BaseReader, _FileIOBase, TimeReader.
See them all under Inherited Attributes and Inherited Methods.
Attributes#
Return the active dataset. |
|
Return the active reader. |
|
Active time or iteration value. |
|
Return all datasets. |
|
Return number of time points or iterations available to read. |
|
All time or iteration values. |
Inherited Attributes#
Return mapping from regex pattern matching associated with this class. |
|
Return the file extensions associated with this class. |
|
Return or set the filename or directory of the reader. |
|
Return the vtk Reader object. |
Methods#
|
Set active time or iteration by index. |
|
Set active time or iteration value. |
|
Value of time point or iteration by index. |
Inherited Methods#
Hide the progress bar when loading the file. |
|
Read data in file. |
|
Show a progress bar when loading the file. |