From 0cf81fb0fca4c5ad73d4dcddc77e9603125d4a45 Mon Sep 17 00:00:00 2001 From: Skudalen Date: Sun, 8 Aug 2021 13:09:57 +0100 Subject: [PATCH] doc: add comment on samplerate-bug and better readme doc --- README.md | 7 ++++--- Signal_prep.py | 1 - 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e23577c..8152ff1 100644 --- a/README.md +++ b/README.md @@ -11,8 +11,9 @@ Scripts to handle CSV files composed by 2 * 8 EMG sensors(left & right) devided * Community libs: Python_speech_features, Pywt #### Challanges in the module -* The CSV handlig requires a specific file structure. Se "How to use it" +* The CSV handlig requires a specific data file structure. Se "How to use it" * Preprocessing is still limited in Signal_prep.py +* NB: `get_samplerate()` is configured for a sampling bug. See comment above function in Handle_emg_data.py #### Credits for insporational code * Kapre: Keunwoochoi @@ -33,11 +34,11 @@ Scripts to handle CSV files composed by 2 * 8 EMG sensors(left & right) devided 1. Clone the repo 2. Place the data files in the working directory -3. Place the data files within the `data`-folder +3. Place the data files within the `data`-folder as data is shown originally (format: `/data////`) 4. Assuming NN analysis: 1. Create a `CSV_handler` object - 2. Load data with `load_data(CSV_handler, )` + 2. Load data with `load_data(CSV_handler, , )` 3. Create `NN_handler` object with `CSV_handler` as input 4. Load MFCC data into the `NN_handler` with `store_mfcc_samples()` 5. Run `save_json_mfcc()` to save samples in json diff --git a/Signal_prep.py b/Signal_prep.py index 363e7c7..ee86998 100644 --- a/Signal_prep.py +++ b/Signal_prep.py @@ -2,7 +2,6 @@ import numpy as np from pandas.core.frame import DataFrame from scipy.fft import fft, fftfreq import pywt -import sys from Handle_emg_data import *