Skip to content

Commit 9a49894

Browse files
add wear/wake hours to the staud output
1 parent 0322e17 commit 9a49894

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/skdh/activity/core.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -944,6 +944,11 @@ def predict(self, *, time, accel, fs=None, wear=None, tz_name=None, **kwargs):
944944
day_stop,
945945
)
946946

947+
res['N wear wake hours'][iday] = around(
948+
sum(dwear_stops - dwear_starts) / fs / 3600, 1
949+
)
950+
res['Wear Wake Minutes'][iday] = sum(time[dwear_stops] - time[dwear_starts]) / 60
951+
947952
self._compute_wear_wake_activity(
948953
res,
949954
accel,

0 commit comments

Comments
 (0)