Skip to content

Commit e358363

Browse files
committed
Fixing typos
1 parent caf0592 commit e358363

2 files changed

Lines changed: 14 additions & 14 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ The package currently supports the following formats:
2525
| BIN | GENEActiv | GENEActiv ||
2626

2727
**Special Note**
28-
The `idle_sleep_mode` for Actigraph watches will lead to uneven sampling rates during periods of no motion (read about this [here](https://actigraphcorp.my.site.com/support/s/article/Idle-Sleep-Mode-Explained)). Consequently, this causes issues when implementing wristpy's non-wear and sleep detection. As of this moment, we fill in the missing acceleration data with the assumption that the watch is perfeclty idle in the face-up position (Acceleration vector = [0, 0, -1]). The data is filled in at the same sampling rate as the raw acceleration data. In the special circumstance when acceleration samples are not evenly spaced, the data is resampled to the highest effective sampling rate to ensure linearly sampled data.
28+
The `idle_sleep_mode` for Actigraph watches will lead to uneven sampling rates during periods of no motion (read about this [here](https://actigraphcorp.my.site.com/support/s/article/Idle-Sleep-Mode-Explained)). Consequently, this causes issues when implementing wristpy's non-wear and sleep detection. As of this moment, we fill in the missing acceleration data with the assumption that the watch is perfectly idle in the face-up position (Acceleration vector = [0, 0, -1]). The data is filled in at the same sampling rate as the raw acceleration data. In the special circumstance when acceleration samples are not evenly spaced, the data is resampled to the highest effective sampling rate to ensure linearly sampled data.
2929

3030
## Processing pipeline implementation
3131

@@ -37,7 +37,7 @@ The main processing pipeline of the wristpy module can be described as follows:
3737
- **Metrics Calculation**: Calculates various metrics on the calibrated data, namely ENMO (Euclidean norm , minus one) and angle-Z (angle of acceleration relative to the *x-y* axis).
3838
- **Non-wear detection**: We find periods of non-wear based on the acceleration data. Specifically, the standard deviation of the acceleration values in a given time window, along each axis, is used as a threshold to decide `wear` or `not wear`.
3939
- **Sleep Detection**: Using the HDCZ<sup>1</sup> and HSPT<sup>2</sup> algorithms to analyze changes in arm angle we are able to find periods of sleep. We find the sleep onset-wakeup times for all sleep windows detected.
40-
- **Physical activity levels**: Using the enmo data (aggreagated into epoch 1 time bins, 5 second default) we compute activity levels into the following categories: inactivity, light activity, moderate activity, vigorous activity. The default threshold values have been chosen based on the values presented in the Hildenbrand 2014 study<sup>3</sup>.
40+
- **Physical activity levels**: Using the enmo data (aggregated into epoch 1 time bins, 5 second default) we compute activity levels into the following categories: inactivity, light activity, moderate activity, vigorous activity. The default threshold values have been chosen based on the values presented in the Hildenbrand 2014 study<sup>3</sup>.
4141

4242

4343
## Installation
@@ -109,7 +109,7 @@ results_dict = orchestrator.run(
109109
)
110110

111111

112-
#Data available in dictionry of results.
112+
#Data available in dictionary of results.
113113
subject1 = results_dict['subject1']
114114

115115
physical_activity_metric = subject1.physical_activity_metric

src/wristpy/processing/metrics.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -252,15 +252,15 @@ def detect_nonwear(
252252
253253
254254
Args:
255-
acceleration: The Measurment instance that contains the calibrated acceleration
255+
acceleration: The Measurement instance that contains the calibrated acceleration
256256
data.
257257
short_epoch_length: The short window size, in seconds.
258258
n_short_epoch_in_long_epoch: Number of short epochs that makeup one long epoch.
259259
std_criteria: Threshold criteria for standard deviation.
260260
261261
262262
Returns:
263-
A new Measurment instance with the non-wear flag and corresponding timestamps.
263+
A new Measurement instance with the non-wear flag and corresponding timestamps.
264264
"""
265265
logger.debug("Detecting non-wear data.")
266266
acceleration_grouped_by_short_window = _group_acceleration_data_by_time(
@@ -296,13 +296,13 @@ def combined_temp_accel_detect_nonwear(
296296
"non-wear", here denoted by 0 and 1, respectively.
297297
298298
Args:
299-
acceleration: The Measurment instance that contains the calibrated acceleration.
300-
temperature: The Measurment instance that contains the temperature data.
299+
acceleration: The Measurement instance that contains the calibrated acceleration.
300+
temperature: The Measurement instance that contains the temperature data.
301301
std_criteria: Threshold criteria for standard deviation.
302302
temperature_threshold: The temperature threshold for non-wear detection.
303303
304304
Returns:
305-
A new Measurment instance with the non-wear flag and corresponding timestamps.
305+
A new Measurement instance with the non-wear flag and corresponding timestamps.
306306
The temporal resolutions is one minute.
307307
308308
References:
@@ -363,12 +363,12 @@ def detach_nonwear(
363363
The nonwear array is downsampled to 60 second resolution.
364364
365365
Args:
366-
acceleration: The Measurment instance that contains the calibrated acceleration.
367-
temperature: The Measurment instance that contains the temperature data.
366+
acceleration: The Measurement instance that contains the calibrated acceleration.
367+
temperature: The Measurement instance that contains the temperature data.
368368
std_criteria: The acceleration STD threshold for non-wear detection.
369369
370370
Returns:
371-
A new Measurment instance with the non-wear flag and corresponding timestamps.
371+
A new Measurement instance with the non-wear flag and corresponding timestamps.
372372
The temporal resolutions is one minute.
373373
374374
References:
@@ -425,7 +425,7 @@ def _group_acceleration_data_by_time(
425425
"""Helper function to group the acceleration data by short windows.
426426
427427
Args:
428-
acceleration: The Measurment instance that contains the calibrated acceleration.
428+
acceleration: The Measurement instance that contains the calibrated acceleration.
429429
window_length: The window size, in seconds.
430430
431431
Returns:
@@ -562,8 +562,8 @@ def _pre_process_temperature(
562562
intervals and then low-pass filters the data by applying a 2 minute rolling mean.
563563
564564
Args:
565-
temperature: The Measurment instance that contains the temperature data.
566-
acceleration: The Measurment instance that contains the acceleration data.
565+
temperature: The Measurement instance that contains the temperature data.
566+
acceleration: The Measurement instance that contains the acceleration data.
567567
568568
Returns:
569569
A polars DataFrame with the pre-processed temperature data.

0 commit comments

Comments
 (0)