File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11[tool .poetry ]
22name = " wristpy"
3- version = " 0.2.6 "
3+ version = " 0.2.7 "
44description = " wristpy is a Python package designed for processing and analyzing wrist-worn accelerometer data."
55authors = [
66 " Adam Santorelli <adam.santorelli@childmind.org>" ,
Original file line number Diff line number Diff line change 22
33import datetime
44import pathlib
5+ import zoneinfo
56from typing import Literal , Union
67
78import actfast
@@ -220,9 +221,11 @@ def _read_actigraph_csv(
220221 start_time = lines [2 ].strip ().split ()[- 1 ]
221222 start_date = lines [3 ].strip ().split ()[- 1 ]
222223
224+ ny_tz = zoneinfo .ZoneInfo ("America/New_York" )
223225 start_datetime = datetime .datetime .strptime (
224226 f"{ start_date } { start_time } " , "%d/%m/%Y %H:%M:%S"
225- )
227+ ).replace (tzinfo = ny_tz )
228+
226229 idle_sleep_mode_value = lines [4 ].strip ().split ()[- 1 ]
227230 idle_sleep_mode_flag = idle_sleep_mode_value .lower () == "true"
228231 sampling_rate = int (lines [5 ].strip ().split ()[- 1 ])
You can’t perform that action at this time.
0 commit comments