I did as you suggested, and now the BEM surfaces are being generated successfully. Thank you very much for your help. However, I was wondering if you could help me understand an issue I encounter while doing so. When I try to import an EDF raw file, I get a warning that says:
EDF > Warning: Physical minimum larger than physical maximum for channel …
(this appears for every channel)
Then, from the GUI, I receive the following error:
Error: Line 261: datetime (line 261) ** Unable to convert 'X' to datetime using the format 'dd-MMM-yyyy'. If the date/time text contains day, month, or time zone names in a language foreign to the 'en_US' locale, those might not be recognized. You can specify a different locale using the 'Locale' parameter. **
I suspect it may be related to my file, since I was able to import the EEG file from the sample_epilepsy folder without any issues. However, I do not understand why this error is occurring, as I have been able to import this same file in the past without any problems. Also, I am not sure whether this is relevant, but I am using MATLAB 2025a on a MacBook Pro with an Apple Silicon M4 chip.
I tried change the language of my Matlab to English too.
But the issue did not solve.
Here is the error in English:
** Error: Line 651: datetime (line 651)
** Unable to convert '03-Feb-2026' to datetime using the format 'dd-MMM-yyyy'. If the date/time text contains day, month, or time zone names in a language foreign to the 'ja_JP' locale, those might not be recognized. You can specify a different locale using the 'Locale' parameter.
**
** Call stack:
** >datetime.m>datetime.datetime at 651
** >in_fopen_edf.m at 230
** >in_fopen.m at 109
** >import_raw.m at 132
** >bst_call.m at 28
** >tree_callbacks.m>@(h,ev)bst_call(@import_raw,,,iSubject) at 685
**
We have pushed a fix (Commit 037d851) to force datetime() to use en_US as input language for the date, as this is the language that date is saved in the EDF file according to the specifications, see Section 2.1.3, Point 4.
Please update your Brainstorm to 18-Feb-2026
Changing the language of Matlab to English does not help, as datetime() uses the System language (Japanese) as default.
This was not an error in the past, as now we are ready extra information in the EDF files to allow presenting the data in actual time (hh:mm:ss), besides the recording time. Documentation is in construction.