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.5 "
3+ version = " 0.2.6 "
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 @@ -68,7 +68,11 @@ def read_watch_data(
6868 start_timestamp_ns + np .arange (n_samples ) * sampling_interval_ns
6969 ).astype (np .int64 )
7070
71- time_series = pl .from_epoch (pl .Series (timestamps_ns ), time_unit = "ns" )
71+ time_series = (
72+ pl .from_epoch (pl .Series (timestamps_ns ), time_unit = "ns" )
73+ .dt .replace_time_zone ("UTC" )
74+ .dt .convert_time_zone ("America/New_York" )
75+ )
7276
7377 acceleration_measurement = models .Measurement (
7478 measurements = acceleration_data , time = time_series
@@ -212,6 +216,7 @@ def _read_actigraph_csv(
212216
213217 start_time = lines [2 ].strip ().split ()[- 1 ]
214218 start_date = lines [3 ].strip ().split ()[- 1 ]
219+
215220 start_datetime = datetime .datetime .strptime (
216221 f"{ start_date } { start_time } " , "%d/%m/%Y %H:%M:%S"
217222 )
You can’t perform that action at this time.
0 commit comments