File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ def detach(
4646 temp_dec_roc : float = - 0.2 ,
4747 temp_inc_roc : float = 0.1 ,
4848 num_axes : int = 2 ,
49- ) -> tuple [ pd . DataFrame , np .ndarray ] :
49+ ) -> np .ndarray :
5050 """Adam Vert's implementation of the DETACH algorithm.
5151
5252 Non-wear algorithm with a 5 minute minimum non-wear duration using absolute
Original file line number Diff line number Diff line change @@ -421,7 +421,7 @@ def cleanup_DETACH_nonwear(nonwear: models.Measurement) -> models.Measurement:
421421 1 / ((acceleration .time [1 :] - acceleration .time [:- 1 ]).median ()).total_seconds () # type: ignore[union-attr] #Guarded by Measurement validation for .time attribute
422422 )
423423
424- [ deatch_wear , nonwear_array ] = _nimbaldetach .detach (
424+ nonwear_array = _nimbaldetach .detach (
425425 x_values = acceleration .measurements [:, 0 ],
426426 y_values = acceleration .measurements [:, 1 ],
427427 z_values = acceleration .measurements [:, 2 ],
You can’t perform that action at this time.
0 commit comments