Since these are simple text files, then yes one could, but this sounds very tedious!
Here are two potential alternative ideas to get you unblocked while we figure this out:
option 1:
I have this python package that can read eyelink EDF files directly. The package includes a helper function that can convert the loaded object directly to MNE (I can give you directions if the documentation is unclear).
I was able to read in your problematic file with this package. However just a couple caveats to keep in mind:
- This package requires the Eyelink Software Developers kit to be installed
- I can’t provide as much support as MNE-Python typically does.
- I’ve never tested this package on Windows…
option 2
Load the data into .mat
structures with the MATLAB EDF-converter as you did before, save the .mat
files, load them into python with pymatreader
, and then convert them to MNE
objects.
- This option is also a little tedious and will require some custom code (speaking from experience). But since I’ve done this before I could provide you with some boiler plate code to work from.
What do you think?