Skip to content

Commit

Permalink
chore: handle legacy mean_df
Browse files Browse the repository at this point in the history
chore: handle legacy mean_df
  • Loading branch information
versey-sherry authored Mar 6, 2023
2 parents 1927d5d + f4bf8c6 commit 9757d4e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion moseq2_viz/model/fingerprint_classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,10 @@ def create_fingerprint_dataframe(scalar_df, mean_df, stat_type='mean', n_bins=No

if len(vel_cols) > 0:
scalar_df[vel_cols] *= 30
mean_df[vel_cols_stats] *=30
try:
mean_df[vel_cols_stats] *=30
except KeyError:
mean_df[vel_cols] *=30

# pivot mean_df to be groupby x syllable
syll_summary = mean_df.pivot_table(index=groupby_list, values='usage', columns='syllable')
Expand Down

0 comments on commit 9757d4e

Please sign in to comment.