11"""Module containing functions to compute accelerations."""
22
3- from typing import Optional , Tuple
3+ from typing import Optional
44
55import numpy as np
66import numpy .typing as npt
@@ -112,8 +112,8 @@ def compute_individual_acceleration(
112112
113113 Returns:
114114 DataFrame containing the columns 'id', 'frame', and 'acceleration' in
115- ' m/s^2' , 'a_x' and 'a_y' with the speed components in x and y direction
116- if :code:`compute_acceleration_components` is True
115+ :math:` m/s^2` , 'a_x' and 'a_y' with the acceleration components
116+ in x and y direction if :code:`compute_acceleration_components` is True
117117 """
118118 df_movement = _compute_individual_movement_acceleration (
119119 traj_data = traj_data ,
@@ -136,7 +136,7 @@ def compute_mean_acceleration_per_frame(
136136 traj_data : TrajectoryData ,
137137 individual_acceleration : pd .DataFrame ,
138138 measurement_area : MeasurementArea ,
139- ) -> Tuple [ pd .DataFrame , pd . DataFrame ] :
139+ ) -> pd .DataFrame :
140140 r"""Compute mean acceleration per frame inside a given measurement area.
141141
142142 Computes the mean acceleration :math:`a_{mean}(t)` inside the measurement
@@ -166,7 +166,8 @@ def compute_mean_acceleration_per_frame(
166166 acceleration is computed
167167
168168 Returns:
169- DataFrame containing the columns 'frame' and 'acceleration' in 'm/s^2'
169+ DataFrame containing the columns 'frame' and 'acceleration' in
170+ :math:`m/s^2`
170171 """
171172 if len (individual_acceleration .index ) < len (traj_data .data .index ):
172173 raise AccelerationError (
@@ -240,7 +241,8 @@ def compute_voronoi_acceleration(
240241 acceleration should be computed
241242
242243 Returns:
243- DataFrame containing the columns 'frame' and 'acceleration' in 'm/s^2'
244+ DataFrame containing the columns 'frame' and 'acceleration' in
245+ :math:`m/s^2`
244246 """
245247 if len (individual_acceleration .index ) < len (
246248 individual_voronoi_intersection .index
0 commit comments