Skip to content

Commit

Permalink
Merge pull request #179 from pfizer-opensource/development
Browse files Browse the repository at this point in the history
Version 0.16.13.post2
  • Loading branch information
LukasAdamowicz authored Oct 23, 2024
2 parents db3c668 + 21f07aa commit 67beee0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -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',
)
Expand Down
10 changes: 8 additions & 2 deletions src/skdh/activity/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 67beee0

Please sign in to comment.