You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function pywearable.sleep.get_total_sleep_time returns 0 when all the columns of the sleepSummary are set to NaN. The function must return NaN in this case.
The text was updated successfully, but these errors were encountered:
Another way to solve this would be to consider (instead of the sum of the sleep stages columns) only the column durationInMs of the sleep summary, which already by definition doesn't consider awake periods. In this case the sleep stages durations would be nan, but total sleep time wouldn't.
The function
pywearable.sleep.get_total_sleep_time
returns 0 when all the columns of the sleepSummary are set to NaN. The function must return NaN in this case.The text was updated successfully, but these errors were encountered: