pyvista.ParticleReader#

class ParticleReader(*args, **kwargs)[source]#

ParticleReader for .raw files.

Added in version 0.44.0.

Warning

If the byte order is not set correctly, the reader will fail to read the file.

Examples

>>> import pyvista as pv
>>> from pyvista import examples
>>> filename = examples.download_particles(load=False)
>>> reader = pv.get_reader(filename)
>>> reader.endian = "BigEndian"
>>> filename.split("/")[-1]  # omit the path
'Particles.raw'
>>> mesh = reader.read()
>>> mesh.plot()
../../../_images/pyvista-ParticleReader-1_00_00.png

Methods

Attributes

ParticleReader.endian

Get the byte order of the data.