mikelval82 / MULTI_GEERT

0 stars 0 forks source link

error when recording file #2

Open JABarios opened 3 years ago

JABarios commented 3 years ago

After successfully visualizing signlas and adding filename. When click on Record Button, the following error appears: Traceback (most recent call last): File "/home/pi/pro/MULTI_GEERT/GUI/EEG_monitor_wrapper.py", line 67, in self.Record_btn.clicked.connect(lambda: self.run('RECORD')) File "/home/pi/pro/MULTI_GEERT/GUI/EEG_monitor_wrapper.py", line 109, in run self.io.online_annotation(action, self.buffer.get_current_instant()) File "/home/pi/pro/MULTI_GEERT/DATA_MANAGER/file_IO.py", line 34, in online_annotation self.edf.annotation(instant, duration, event) File "/home/pi/pro/MULTI_GEERT/EDF/writeEDFFile.py", line 39, in annotation self.file.writeAnnotation(instant, duration, event) AttributeError: 'edf_writter' object has no attribute 'file'

mikelval82 commented 3 years ago

Ok, I have just reproduce the error. You have to first stop the visualization and then push the recording button.

mikelval82 commented 3 years ago

I will change the code to allow this behaviour.

mikelval82 commented 3 years ago

Ok, changes done! The new behaviour is as follows: not streaming and not recording and presh button start -> streaming and not recording not streaming and not recording and presh button record -> streaming and recording streaming and not recording and presh button start -> not streaming and not recording streaming and not recording and presh button record -> streaming and recording streaming and recording and presh button record or start -> not streaming and not recording