Skip to content
Snippets Groups Projects
Commit 539c9080 authored by ='s avatar =
Browse files

Nearly there

parent 13a9d666
No related branches found
No related tags found
1 merge request!1Progress toward getting the evaluation integrated
......@@ -8,6 +8,7 @@ import matplotlib.pyplot as plt
import scipy.signal as signal
import pandas as pd
class MNEProcessor:
def __init__(self, scan_path, output_dir, csv_output_path):
self.scan_path = scan_path
......@@ -35,7 +36,7 @@ class MNEProcessor:
sfreq = raw.info["sfreq"]
#Unused so ignoring
# Unused so ignoring
# mag_picks = mne.pick_types(raw.info, meg=True, eeg=False, misc=False)
# eeg_picks = mne.pick_types(raw.info, meg=False, eeg=True, misc=False)
misc_picks = mne.pick_types(raw.info, meg=False, eeg=False, misc=True)
......@@ -101,6 +102,7 @@ class MNEProcessor:
header="Time, IC1, IC2, IC3, IC4, IC5, IC6, IC7, IC8, IC9, IC10, IC11, IC12, IC13, IC14, IC15, IC16, IC17, IC18, IC19, IC20",
)
class GetRRComponent:
def __init__(self, output_sub_dir, subject_id, subject_path, ICA_value):
"""
......@@ -244,6 +246,7 @@ class GetRRComponent:
df.to_csv(stats_component, index=False)
class GetRRIntervals:
def __init__(self, subject_id):
self.subject_id = subject_id
......@@ -494,4 +497,4 @@ class GetRRIntervals:
df = df.set_index("Signal")
# df = df.dropna()
df.to_csv(stats_ECG)
\ No newline at end of file
df.to_csv(stats_ECG)
#TODO add code here...
# TODO add code here...
# from typing import Dict, List
# import numpy as np
......
......@@ -4,7 +4,6 @@ from tensorflow import keras
import pandas as pd
class label_ICA_components:
"""
Date 11/11/2021
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment