Cela peut être une erreur de niveau débutant.EEGrunt: le nom de l'erreur n'est pas défini
Il dit:
NameError in line 16 that'start' is not defined.
Je suis en cours d'exécution d'un code pour OpenBCI
appelé EEGrunt
, qui est utilisé pour analyser les données EEG. Je ne suis pas sûr comment devrais-je définir démarrer ou arrêter pour ce programme particulier
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()
Eh bien, en effet, ni '' start' ni stop' sont définis. D'où attendez-vous qu'ils viennent? –
Aussi, veuillez corriger votre indentation. Que contient la boucle 'for'? –
désolé je voudrais juste indenter correctement –