torcheeg icon indicating copy to clipboard operation
torcheeg copied to clipboard

ERROR loading DEAP Dataset on macOS

Open hairongChenDavid opened this issue 1 year ago • 1 comments

In deap.py, in process_record pkl_data = pkl.load(f, encoding='iso-8859-1') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _pickle.UnpicklingError: invalid load key, '\x00'. This error is due to invalid load key .DS_Store: .DS_Store is a file automatically generated by macOS, so to resolve this problem, I added a filter: def set_records(self, root_path: str = './data_preprocessed_python', **kwargs): return [f for f in os.listdir(root_path) if f.endswith('.dat')]

hairongChenDavid avatar Nov 29 '23 05:11 hairongChenDavid

Thank you for your report. It makes sense.

If you are willing, please feel free to open a pull request.

tczhangzhi avatar Nov 30 '23 04:11 tczhangzhi