Newer
Older
BrainWave-Task-Visualizer / results / eeg_classification_20241225_184211.log
  1. 2024-12-25 18:42:11,661 - INFO - Processing started for file: ./csvfiles/imagine_nouhadata_BandPower2024-12-25,16-32-25-602962.csv
  2. 2024-12-25 18:42:11,661 - INFO - Starting data preprocessing...
  3. 2024-12-25 18:42:11,670 - ERROR - An error occurred: 'task_type'
  4. Traceback (most recent call last):
  5. File "C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\indexes\base.py", line 3361, in get_loc
  6. return self._engine.get_loc(casted_key)
  7. File "pandas\_libs\index.pyx", line 76, in pandas._libs.index.IndexEngine.get_loc
  8. File "pandas\_libs\index.pyx", line 108, in pandas._libs.index.IndexEngine.get_loc
  9. File "pandas\_libs\hashtable_class_helper.pxi", line 5198, in pandas._libs.hashtable.PyObjectHashTable.get_item
  10. File "pandas\_libs\hashtable_class_helper.pxi", line 5206, in pandas._libs.hashtable.PyObjectHashTable.get_item
  11. KeyError: 'task_type'
  12.  
  13. The above exception was the direct cause of the following exception:
  14.  
  15. Traceback (most recent call last):
  16. File "E:\NextCloud\Document\pythonFile\main-script.py", line 65, in main
  17. processed_data = preprocess_eeg_data(
  18. File "E:\NextCloud\Document\pythonFile\preprocessing.py", line 198, in preprocess_eeg_data
  19. is_valid, message, (rows_to_clean, cleaning_reasons) = validate_data(df)
  20. File "E:\NextCloud\Document\pythonFile\preprocessing.py", line 34, in validate_data
  21. nan_rows = df[col].isna()
  22. File "C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\frame.py", line 3458, in __getitem__
  23. indexer = self.columns.get_loc(key)
  24. File "C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\indexes\base.py", line 3363, in get_loc
  25. raise KeyError(key) from err
  26. KeyError: 'task_type'