runtraj.particles.particles_metadata#

runtraj.particles.particles_metadata(path)[source]#

Return the release, run settings, and met files a particle file records.

Raises:

ValueError – If the file records no run settings, as files written before runtraj recorded them do.

Return type:

ParticleMetadata

Parameters:

path (str | Path | UPath)

Examples

>>> meta = runtraj.particles.particles_metadata(
...     sim.particles_path
... )
>>> meta.settings["model"]
{'name': 'hysplit', 'version': 'v5.1.0'}