这可能是一个非常初级的错误。
上面写着:
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()发布于 2016-11-29 05:19:04
我也有同样的问题。据该项目的业主介绍:
默认情况下,该行应该被注释掉。
带通函数获取数据并应用巴特沃斯带通滤波器。start和stop参数将频率范围设置为带通,单位为赫兹。但它是可选的:大多数时候它不会被使用,它不应该停止程序的运行。
https://stackoverflow.com/questions/40841043
复制相似问题