Skip to content

Commit

Permalink
name change suggestion (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfmig authored May 23, 2024
1 parent 36fa102 commit 1483dab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions movement/io/load_poses.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ def _from_lp_or_dlc_file(

# Load the DLC poses into a DataFrame
if file.path.suffix == ".csv":
df = _parse_dlc_csv_to_df(file.path)
df = _load_df_from_dlc_csv(file.path)
else: # file.path.suffix == ".h5"
df = _load_df_from_dlc_h5(file.path)

Expand Down Expand Up @@ -484,7 +484,7 @@ def _sleap_labels_to_numpy(labels: Labels) -> np.ndarray:
return tracks


def _parse_dlc_csv_to_df(file_path: Path) -> pd.DataFrame:
def _load_df_from_dlc_csv(file_path: Path) -> pd.DataFrame:
"""Parse a DeepLabCut-style .csv file into a pandas DataFrame.
If poses are loaded from a DeepLabCut .csv file, the DataFrame
Expand Down

0 comments on commit 1483dab

Please sign in to comment.