EEGrunt:错误名称未定义
问题描述:
这可能是一个非常初学者级别的错误。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()
答
我有同样的问题。根据项目业主:
该行应默认注释掉。
带通功能获取数据并应用带通滤波器butterworth 带通滤波器。启动和停止参数将频率范围 设置为带通,以赫兹为单位。但它是可选的:大部分时间不是使用 ,它不应该阻止程序运行。
+0
非常感谢你会尝试评论:) –
嗯,的确,无论是'start'也不'stop'定义。你期待他们从哪里来? –
另外,请修复您的缩进。 'for'循环里面有什么? –
对不起我只是缩进 –