Skip to content

Commit 04c3bb2

Browse files
committed
Fixing return
1 parent 20fd3a6 commit 04c3bb2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/wristpy/processing/_nimbaldetach.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

src/wristpy/processing/metrics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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],

0 commit comments

Comments
 (0)