2016-11-28 4 views
0

이것은 초급 수준의 오류 일 수 있습니다.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() 
+1

음, 참,'start'도'stop'이 모두 정의되어 있습니다. 그들이 어디에서 왔을 것으로 예상됩니까? –

+1

또한 들여 쓰기를 수정하십시오. 'for' 루프의 내용은 무엇입니까? –

+0

미안하지만 난 그냥 들여 쓰기가 적절하게 –

답변

0

동일한 질문이 있습니다. 프로젝트 소유자에 따르면 :

해당 줄은 기본적으로 주석 처리되어야합니다.

bandpass 함수는 데이터를 가져 와서 버터 워 대역 통과 필터를 적용합니다. 시작 및 정지 인수는 주파수 범위 을 대역 통과 (Hertz)로 설정합니다. 그러나 선택 사항입니다. 대부분의 경우 이 사용되지 않으며 프로그램이 실행되지 않아야합니다.

https://github.com/curiositry/EEGrunt/issues/11

+0

정말 고맙습니다. –