Skip to content

Commit cf98353

Browse files
committed
timestamp fix
1 parent 3cdc786 commit cf98353

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

src/wristpy/core/orchestrator.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,7 @@ def _run_file(
351351
temperature=watch_data.temperature,
352352
non_wear_algorithms=nonwear_algorithm,
353353
)
354+
354355
nonwear_epoch = nonwear_utils.nonwear_array_cleanup(
355356
nonwear_array=nonwear_array,
356357
reference_measurement=activity_measurement,

src/wristpy/processing/mims.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -679,6 +679,8 @@ def aggregate_mims(
679679
},
680680
)
681681

682+
result = result.with_columns(pl.col("time").dt.truncate(f"{int(epoch)}s"))
683+
682684
aggregated_measure = models.Measurement(
683685
measurements=result.select(["x", "y", "z"]).to_numpy(),
684686
time=result["time"].cast(pl.Datetime("ns")),

0 commit comments

Comments
 (0)