From 22f8862ca1b37746ae569913cf2d8b19353d76e1 Mon Sep 17 00:00:00 2001 From: Lukas Adamowicz Date: Wed, 23 Oct 2024 11:22:54 -0400 Subject: [PATCH 1/2] fix not using proper days for staudenmayer --- src/skdh/activity/core.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/skdh/activity/core.py b/src/skdh/activity/core.py index de3f4f05..f0e2775e 100644 --- a/src/skdh/activity/core.py +++ b/src/skdh/activity/core.py @@ -762,12 +762,13 @@ class StaudenmayerClassification(BaseProcess): vol. 119, no. 4, pp. 396–403, Aug. 2015, doi: 10.1152/japplphysiol.00026.2015. """ - def __init__(self, arm_axis, demean=False, use_power=True, min_wear_time=10): + def __init__(self, arm_axis, demean=False, use_power=True, min_wear_time=10, day_window=(0, 24),): super().__init__( arm_axis=arm_axis, demean=demean, use_power=use_power, - min_wear_time=min_wear_time + min_wear_time=min_wear_time, + day_window=day_window ) self.axis = arm_axis @@ -784,6 +785,11 @@ def __init__(self, arm_axis, demean=False, use_power=True, min_wear_time=10): 'moderate', 'vigorous' ] + + if day_window is None: + self.day_key = (-1, -1) + else: + self.day_key = tuple(day_window) def _update_date_results( self, results, time, day_n, day_start_idx, day_stop_idx, day_start_hour From 21f07aa053c4a3bc77971a24b0151524531be7ba Mon Sep 17 00:00:00 2001 From: Lukas Adamowicz Date: Wed, 23 Oct 2024 11:28:40 -0400 Subject: [PATCH 2/2] version bump --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 3b0209ef..2dda72b1 100644 --- a/meson.build +++ b/meson.build @@ -1,7 +1,7 @@ project( 'scikit-digital-health', 'c', - version: '0.16.13.post1', + version: '0.16.13.post2', license: 'MIT', meson_version: '>=1.1', )