Closed adam2392 closed 4 years ago
It doesn't look like the file is a valid tab separated file. There are columns that are not separated by tabs in the rows after the first one
Hmmm.. that's weird tho. I wrote these in with mne_bids.write_raw_bids
, and then simply ran read_raw_bids
. I am viewing them with a .tsv text-editor and they do show up as tabs, so I believe that's not the reason.
It looks like the main issue occurs when there is a "#" character because tsv_handler.py's _from_tsv
uses np.loadtxt, which defaults to "#" being comments. I just tried it out locally, and adding comments=None
to the np.loadtxt line of _from_tsv
fixes it.
However, I'm not sure if there is a reason for including the comments? What do you think @jasmainak
If it's nothing to worry about, then I can submit a quick PR to fix this.
hummm I agree that round trip should work
Describe the bug
I am reading in a file written from EDF and converted to BV via
read_raw_bids
, and I get this error:However, my file looks... correct? Is this a bug in
_from_tsv
, or something else?Additional information
I have placed the file in here. sub-pt3_ses-seizure_task-monitor_acq-eeg_run-03_events.zip