Hello
I am writing the following code to apply filtering to EEG data from csv file, but when i run the code i got this error ( ValueError: All picks must be < n_channels (8), got 8 ) , can anyone help to solve the problem
import numpy as np
import pandas as pd
import mne
import matplotlib.pyplot as plt
from math import pi
path = 'C:/Users/name/Documents/gtec/Unicorn Suite/Hybrid Black/Unicorn Python/Examples/Acquisition Example/'
data = pd.read_csv(path + 'output2.csv',
skiprows=0, usecols=[*range(0, 8)])*1e-6
ch_names = ['e1', 'e2', 'e3', 'e4', 'e5', 'e6', 'e7', 'e8']
sfreq = 250
info = mne.create_info(ch_names = ch_names, sfreq = sfreq)
raw = mne.io.RawArray(data.transpose() , info)
mne.filter.filter_data(raw, sfreq, l_freq=7.5, h_freq=12.5)
raw.plot(duration=0.5)