0
这可能是一个非常初学者级别的错误。EEGrunt:错误名称未定义
它说:
NameError in line 16 that'start' is not defined.
我正在呼吁EEGrunt
为OpenBCI
一个代码,它是用来分析脑电数据。我不知道我应该如何定义这个特定程序的启动或停止
import EEGrunt
source = 'openbci'
path = 'C:/Users/Vedant/Desktop/Pygaze/OpenBCI_2/application.windows64/SavedData/'
filename = 'OpenBCI-RAW-2016-11-28_16-23-14.txt'
session_title = "OpenBCI EEGrunt Test Data"
EEG = EEGrunt.EEGrunt(path, filename, source, session_title)
EEG.plot = 'show'
EEG.load_data()
for channel in EEG.channels:
EEG.load_channel(channel)
print("Processing channel "+ str(EEG.channel))
EEG.remove_dc_offset()
EEG.notch_mains_interference()
EEG.signalplot()
EEG.get_spectrum_data()
EEG.data = EEG.bandpass(start, stop)
EEG.spectrogram()
EEG.plot_band_power(8,12,"Alpha")
EEG.plot_spectrum_avg_fft()
EEG.showplots()
嗯,的确,无论是'start'也不'stop'定义。你期待他们从哪里来? –
另外,请修复您的缩进。 'for'循环里面有什么? –
对不起我只是缩进 –