bids-matlab-tools icon indicating copy to clipboard operation
bids-matlab-tools copied to clipboard

Prompt throws an error when there are files are in cell

Open neuromechanist opened this issue 1 year ago • 0 comments

If the file name is in a cell (instead of a char array), which is the case for multi-run or multi-task scenarios, this print line will throw an error because it is expecting a string but gets a cell instead. I commented it out and things worked fine. Probably making nesting fileIn in char would resolve it: fprintf('Processing file %s\n', char(fileIn));

https://github.com/sccn/EEG-BIDS/blob/25acddb37886508d41d49438710b79e0c5ae2ffb/bids_export.m#L835

neuromechanist avatar Sep 02 '24 20:09 neuromechanist