We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1aaa1e commit 80eb0ddCopy full SHA for 80eb0dd
1 file changed
tests/unit/test_analytics.py
@@ -214,11 +214,12 @@ def test_sleep_cleanup() -> None:
214
)
215
]
216
217
+ expected_result = np.zeros(len(nonwear_measurement.time))
218
+ expected_result[600:2000] = 1
219
+
220
result = analytics.sleep_cleanup(
221
sleep_windows=sleep_windows, nonwear_measurement=nonwear_measurement
222
- expected_result = np.zeros(len(nonwear_measurement.time))
- expected_result[600:2000] = 1
223
224
assert len(result.time) == 3600
225
assert np.array_equal(result.measurements, expected_result)
0 commit comments