shnitsel.data.dataset_containers.trajectory#
Classes#
Meta information for trajectory setup |
|
Definition of the protocol to support instantiation from |
Module Contents#
- class MetaInformation#
Meta information for trajectory setup
- class Trajectory(ds)#
Bases:
shnitsel.data.dataset_containers.data_series.DataSeriesDefinition of the protocol to support instantiation from xarray dataset structs.
- Parameters:
ds (xarray.Dataset)
- _is_multi_trajectory = False#
- property as_frames: shnitsel.data.dataset_containers.frames.Frames#
Convert this trajectory to a frames version of this trajectory, where the leading dimension is frame instead of time.
- Returns:
Frames
- Return type:
The resulting frames instance with a stacked dimension frame and a new coordinate active_trajectory along the frame dimension
- property as_trajectory: Self#
Convert this trajectory to a trajectory.
- Returns:
Self
- Return type:
The same object that is already a trajectory
- property is_multi_trajectory: bool#
Flag whether this is a multi-trajectory container.
Overwritten by child classes that combine multiple trajectories into one object
- Return type:
- property trajectory_input_path: str | None#
Input path from which the trajectory was loaded
- Return type:
str | None