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'循環裏面有什麼? –
對不起我只是縮進 –