lt_toolbox.TrajFrame.get_duration#

TrajFrame.get_duration() Self[source]#

Get time taken for particles to be terminated following seeding (duration of trajectory).

The duration of each trajectory is stored in the polars Duration dtype format.

Returns:

TrajFrame is returned with appended column variable {total_time}.

Return type:

TrajFrame

Examples

Get duration of all trajectories.

>>> trajectories.get_duration()