Closed behinger closed 4 months ago
This is an old report, but we would be grateful if you could share a data file
was on vaccation. I attached an events file - is that enough or should I zip the whole dataset?
I verified using the provided example events.tsv file that the issue no longer exists
When reading a BIDS file with an UTF-8-sig encoded events.tsv file, we get an error because "onset" is not read as "onset" but as " onset" (with the " " actually being 65279 [output of
double(inputline(1))
]). This crashes pop_importbids in L392 withevents(end).(eventData{1,iField}) = eventData{iEvent,iField};
Note how the character 65279 is not displayed here because strg + c/v removed it (we see 'onset' instead of ' onset'). Thus I attach a screenshot
I tried digging into the loadtxt script of eeglab, it does not seem straight forward to fix it. Thus I propose following fix:
using genvarname is a bit of a hack though. But it works for me.
Note: UTF-8-sig is the export value of the mne_bids tool.