Skip to content

Commit

Permalink
fix(summarize_bouts): avoid in-place modification of input variable
Browse files Browse the repository at this point in the history
  • Loading branch information
chanshing committed Oct 10, 2024
1 parent 45f9c36 commit f9e9119
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stepcount/stepcount.py
Original file line number Diff line number Diff line change
Expand Up @@ -984,7 +984,7 @@ def summarize_bouts(
bout_duration = n * dt / one_min # in minutes
bout_cadence = bout_steps / bout_duration # steps per minute
# rescale to steps per minute
y *= one_min / dt
y = y * one_min / dt
bout_cadence_sd = y.std()
bout_cadence_25th = y.quantile(0.25)
bout_cadence_50th = y.quantile(0.50)
Expand Down

0 comments on commit f9e9119

Please sign in to comment.