Skip to content

Commit f9e9119

Browse files
committed
fix(summarize_bouts): avoid in-place modification of input variable
1 parent 45f9c36 commit f9e9119

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stepcount/stepcount.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -984,7 +984,7 @@ def summarize_bouts(
984984
bout_duration = n * dt / one_min # in minutes
985985
bout_cadence = bout_steps / bout_duration # steps per minute
986986
# rescale to steps per minute
987-
y *= one_min / dt
987+
y = y * one_min / dt
988988
bout_cadence_sd = y.std()
989989
bout_cadence_25th = y.quantile(0.25)
990990
bout_cadence_50th = y.quantile(0.50)

0 commit comments

Comments
 (0)