이것은 초급 수준의 오류 일 수 있습니다.EEGrunt : 오류 이름이 정의되지 않았습니다.
은 말한다 :
NameError in line 16 that'start' is not defined.
내가 EEG 데이터를 분석하는 데 사용됩니다 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' 루프의 내용은 무엇입니까? –
미안하지만 난 그냥 들여 쓰기가 적절하게 –