Skip to main content

reader

title: reader sidebar_position: 12

PyVista reader stored on Plotter after configuring a file with set_file() or the filepath constructor argument.

Like set_file(), passing filepath to Plotter creates the reader immediately via pyvista.get_reader(...), but does not read the dataset yet.

The dataset itself is still loaded lazily when you access mesh or when show() / export() rebuild the scene.

Returns

Example

from pyemsi import Plotter

file_path = examples.transient_path()
plt = Plotter(file_path)
print(plt.reader.__class__) # <class 'pyvista.core.utilities.reader.PVDReader'>