Skip to content

Commit

Permalink
Fix bug in audio_count_loud
Browse files Browse the repository at this point in the history
  • Loading branch information
rantahar committed Oct 21, 2024
1 parent 618d086 commit 21a77f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion niimpy/preprocessing/audio.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def audio_count_loud(df_u, config=None):
df_u[col_name] = pd.to_numeric(df_u[col_name])

if len(df_u)>0:
df_s = df_u[df_u[col_name]>70] #check if environment was noisy
df_u = df_u[df_u[col_name]>70] #check if environment was noisy
result = util.group_data(df_u)[col_name].resample(**config["resample_args"]).count()
result = result.to_frame(name='audio_count_loud')
result = util.reset_groups(result)
Expand Down

0 comments on commit 21a77f7

Please sign in to comment.