I am exporting an EEG file in .edf format to then import it into Stellate. When opening the exported file in Stellate, we observe flat lines in the signal (see attached screenshot). We managed to work around this issue by exporting the .edf file using AnyWave.
To export the file from Brainstorm, I use:
Right-click on Link to Raw | band (0.5-100Hz) | notch (60Hz) | resample (250Hz) | Synchronised→ File → Export to file.
Could any step in my procedure, a recent change in Brainstorm, or a problem with my local setup (I am running MATE) be affecting the .edf export?
Also, could this be related to the recent bug you just fixed?
The .edf file was created before the bugfix was committed. I regenerated a .edf file today after yesterday’s bugfix and an update of Brainstorm, but I don’t have access to the Stellate computer at the moment, so I haven’t been able to verify it directly
Interesting fact: If you take the raw file, and use import to database (importing the all file) then export to edf. it produce a very different file than exporting directly to edf. (300 Mb vs 600 mb)
With the shared data, I'm able to create a EDF file that is correct. Please check in other software besides Stellate.
For exporting raw data, depending on the combination of (read) block size and the size of the EDF (write) record, it can lead to EDF records that have many zeros if the block size is smaller. Thus the file is longer. For imported data, the entire data is (read) in one shot, so it is efficiently splitted into EDF records. An improvement would be to read larger blocks. Nevertheless the output EDF files are healthy.