runtraj.Project.trajectories#

Project.trajectories(sel=None)[source]#

Load the trajectories of every selected simulation that has them, as one table.

Parameters:

sel (Any) – The simulations, as for status(). Every simulation of a variant that makes trajectories by default.

Returns:

The trajectory table (runtraj.trajectories) with release and variant first. A trajectory is told from another by release, variant and trajectory together. Simulations without a result are left out, and the table is empty when none has one yet.

Return type:

DataFrame

Raises:

ValueError – If sel names a variant that makes another type of result, or no variant of the project makes trajectories.

Examples

>>> trajectories = project.trajectories()
>>> trajectories.groupby(["release", "trajectory"])[
...     "zagl"
... ].max()