Skip to content

Commit af35eaf

Browse files
committed
Analysis comments
1 parent 3f892f5 commit af35eaf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

utils/analysis.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,9 @@ def calculate_distance(point1: tuple, point2: tuple) -> float:
118118
def calculate_distance_for_bodyparts(dataframe: pd.DataFrame, body_parts: Union[List[str], str]) -> List[pd.Series]:
119119
"""
120120
Calculating distances traveled for each frame for desired body parts
121-
:param dataframe DataFrame: dataframe to calculate distances on
121+
:param dataframe: dataframe to calculate distances on
122122
Should have columns with X and Y coordinates of desired body_parts
123-
:param body_parts str or list of str: part or parts to calculate distances for
123+
:param body_parts: (str or list of str) part or parts to calculate distances for
124124
Can be either string or list of strings
125125
:return list: returns list of pd.Series with distances for each bodypart
126126
"""
@@ -159,9 +159,9 @@ def calc_distance(bodypart):
159159
def calculate_speed_for_bodyparts(dataframe: pd.DataFrame, body_parts: Union[List[str], str]) -> List[pd.Series]:
160160
"""
161161
Calculating speed in pixels per seconds for each frame for desired body parts
162-
:param dataframe DataFrame: dataframe to calculate speeds on
162+
:param dataframe: dataframe to calculate speeds on
163163
Should have columns distances travelled for each desired body part
164-
:param body_parts str or list of str: part or parts to calculate distances for
164+
:param body_parts: part or parts to calculate distances for
165165
Can be either string or list of strings
166166
:return list: returns list of pd.Series with speeds for each bodypart
167167
"""

0 commit comments

Comments
 (0)