lt_toolbox.TrajFrame.get_max#
- TrajFrame.get_max(var: str) Self[source]#
Get maximum value of a specified variable for each trajectory.
The maximum value of the variable is returned for all trajectories as a new column variable.
- Parameters:
var (str) – Name of column variable to find maximum value along each trajectory.
- Returns:
TrajFrame is returned with appended column variable {var}_max containing the maximum values along each trajectory.
- Return type:
TrajFrame
Examples
Get the maximum temperature along each trajectory.
>>> trajectories.get_max(variable='temp').