It seems mne.io.read_raw_edf only supports reading the actual files. i have tried using io.BytesIO and io.RawBaseIO and get the following error
TypeError: expected str, bytes or os.PathLike object, not RawIOBase
so i then tried just casting the bytearray form the dataframe as bytes, and get this error
NotImplementedError: Only EDF files are supported by read_raw_edf, got b’’
does anyone have any suggestions on how to get the edfs loaded into spark using the following method?
I’m pretty sure this is not easily possible without adapting the reader function to also accept a file-like (bytes-like) object in addition to a string (the file name). Is someone knows how to do that I’d be very interested!