Skip to content

Commit 485c425

Browse files
committed
renamed output file from pybind; clarification regarding matplotlib
1 parent 9e56cd2 commit 485c425

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This algorithm is derived from the Brainflow SpO2 algorithm, and uses PPG-R and
66

77
# Scripts
88
## `run.py <path_to_data_folder>`
9-
Runs the Brainflow algorithm on the provided data folder (which needs to contain a separate .csv file for PPG-R and PPG-IR from the EmotiBit ending in `PR.csv` and `PI.csv`) and saves the calculated SpO2 with timestamps to `generated.csv`. Also shows a plot of the PPG data overlayed with the calculated SpO2.
9+
Runs the Brainflow algorithm on the provided data folder (which needs to contain a separate .csv file for PPG-R and PPG-IR from the EmotiBit ending in `PR.csv` and `PI.csv`) and saves the calculated SpO2 with timestamps to `calculated_spo2.csv`. Also shows a plot of the PPG data overlayed with the calculated SpO2.
1010

1111
# Performance
1212
## [sit-stand-sit_v0.0.0](https://github.com/EmotiBit/Biometric_Validation_Methods/releases/tag/sit-stand-sit_v0.0.0)

pybind/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@
3030
- Verify that `EmotiBit_PI.csv`, `EmotiBit_PR.csv`, and `EmotiBit_UN.csv` exist under `tests/simulated-unobstructed-airway_v0.0.0/ip900ap`
3131
- Switch to the terminal window in the `pybind` directory
3232
- Run `python run.py ../tests/simulated-unobstructed-airway_v0.0.0/ip900ap`
33-
- `matplotlib` may need to be installed for the script to run successfully
33+
- `matplotlib` will need to be installed for the script to run successfully
3434
- A plot of the raw PPG data overlayed with the calculated SpO2 should appear

pybind/run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def main():
8080
index += chunk_size
8181

8282
# Save o2_levels and o2_ts to a CSV file
83-
output_csv = os.path.join(data_folder, 'generated.csv')
83+
output_csv = os.path.join(data_folder, 'calculated_spo2.csv')
8484
with open(output_csv, 'w', newline='') as csvfile:
8585
writer = csv.writer(csvfile)
8686
writer.writerow(['Timestamp', 'O2'])

0 commit comments

Comments
 (0)