tracmass.write_trajectories_parquet#

tracmass.write_trajectories_parquet(filepath, state, nff=1)[source]#

Write a single particle state snapshot to a Parquet file.

Parameters:
  • filepath (str) – Output .parquet file path.

  • state (ParticleState) – Final (or snapshot) particle state.

  • nff (int) – Time direction (1=forward, -1=backward). tt and ts are stored as nff * value so backward trajectories have negative times, matching the Fortran TRACMASS convention.

Returns:

str – The path that was written.

Return type:

str