Added some files, updated some files
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import mne
|
||||
from mne.preprocessing import create_eog_epochs
|
||||
import matplotlib.pyplot as plt
|
||||
|
||||
from mne.preprocessing import create_eog_epochs
|
||||
from mne_bids import BIDSPath, read_raw_bids
|
||||
from utils.ccs_eeg_utils import read_annotations_core
|
||||
from utils.file_utils import get_epochs
|
||||
@@ -39,6 +40,8 @@ def plot_filter_data():
|
||||
data = load_unprocessed_subject(subj, ds)
|
||||
data.load_data()
|
||||
# data.plot(n_channels=len(data.ch_names), block=True, scalings=40e-6)
|
||||
fig = mne.viz.plot_raw_psd(data, fmax=80, average=True, show=False)
|
||||
fig.savefig("plots/frequency_nonfiltered_subj_" + subj)
|
||||
filter_data(data)
|
||||
fig = mne.viz.plot_raw_psd(data, fmax=80, average=True, show=False)
|
||||
fig.savefig("plots/frequency_filtered_subj_" + subj + "_48Hz.png")
|
||||
@@ -50,6 +53,8 @@ def plot_filter_data_epoched(subj):
|
||||
data = load_unprocessed_subject(subj, ds)
|
||||
data.load_data()
|
||||
filter_data(data)
|
||||
data.annotations.delete(list(range(0, len(data.annotations))))
|
||||
data.plot(n_channels=len(data.ch_names), block=True, scalings=40e-6)
|
||||
get_epochs(data)[0].average().plot()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user