From f9e91198325270b7bf4dc4b8d0c2e6d59ffcf9f4 Mon Sep 17 00:00:00 2001 From: Shing Chan Date: Thu, 10 Oct 2024 13:26:28 +0100 Subject: [PATCH] fix(summarize_bouts): avoid in-place modification of input variable --- src/stepcount/stepcount.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stepcount/stepcount.py b/src/stepcount/stepcount.py index c4bc766..2a61383 100644 --- a/src/stepcount/stepcount.py +++ b/src/stepcount/stepcount.py @@ -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)