bug: minor errors
This commit is contained in:
parent
5e5d07a150
commit
c207fc2c99
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"python.pythonPath": "~/.virtualenv/myo_signal_analysis"
|
"python.pythonPath": "/Users/Markus/opt/Anaconda3/python"
|
||||||
}
|
}
|
@ -3,8 +3,6 @@ from pathlib import Path
|
|||||||
|
|
||||||
class CSV_handler:
|
class CSV_handler:
|
||||||
|
|
||||||
self.working_dir
|
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.working_dir = str(Path.cwd())
|
self.working_dir = str(Path.cwd())
|
||||||
|
|
||||||
@ -17,7 +15,7 @@ class CSV_handler:
|
|||||||
# Extracts out the timestamp and the selected emg signal into a new dataframe
|
# Extracts out the timestamp and the selected emg signal into a new dataframe
|
||||||
def get_time_emg_table(self, filename, emg_nr):
|
def get_time_emg_table(self, filename, emg_nr):
|
||||||
|
|
||||||
tot_data_frame = make_df(self, filename)
|
tot_data_frame = self.make_df(self, filename)
|
||||||
emg_str = "emg" + str(emg_nr)
|
emg_str = "emg" + str(emg_nr)
|
||||||
filtered_df = tot_data_frame[["timestamp", emg_str]]
|
filtered_df = tot_data_frame[["timestamp", emg_str]]
|
||||||
return filtered_df
|
return filtered_df
|
||||||
|
Binary file not shown.
@ -1,4 +1,4 @@
|
|||||||
from Handle_emg_data.py import CSV_handler
|
from Handle_emg_data import CSV_handler
|
||||||
|
|
||||||
def test_df_extraction():
|
def test_df_extraction():
|
||||||
handler = CSV_handler()
|
handler = CSV_handler()
|
||||||
|
BIN
__pycache__/Handle_emg_data.cpython-38.pyc
Normal file
BIN
__pycache__/Handle_emg_data.cpython-38.pyc
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user