About EDF file read related problem

Hi Francois

Do you give suggestion regarding the following message:

" Warning: Interrupted EDF file ("EDF+D"): requires conversion to "EDF+C"

In in_fopen_edf (line 172)
In in_fopen (line 96)
In import_raw (line 126)
In bst_call (line 28)
In tree_callbacks>@(h,ev)bst_call(@import_raw,,,iSubject) (line 596)
"
The above message is generated when I load .EDF file. But I see the waveform. My question is that, is above warning can show any change in my data.

Best regards
--Sheuli

Hello

Sorry for the response delay. Please post your questions as public topics instead of private messages so other people can help you if I am not available.

This file type “EDF+D” indicates that the file in including non-contiguous file segments:
https://www.edfplus.info/specs/edfplus.html#header
Brainstorm will read this file as a continuous file (as it if were “EDF+C”), and the timing of the samples after the first discontinuity will be wrong. This won’t cause any major problem unless you have time markers in this file, they might be inaccurate in all the segments >= 2.

Hi Francois

I have an EDF file. It contains two types of channel. 1. EEG 2. POL. when I load this EDF file using brainstorm software, it create the following types of warning in my laptop:

"
Warning: Interrupted EDF file ("EDF+D"): requires conversion to "EDF+C"

In in_fopen_edf (line 172)
In in_fopen (line 96)
In import_raw (line 126)
In bst_call (line 28)
In tree_callbacks>@(h,ev)bst_call(@import_raw,,,iSubject) (line 596)
"

Is it possible to remove this types of Warning.?

Another problem is that when I tried to create Power spectrum(PSD) for POL types of channel it create the following types of error

"Error: Line 1990: Output argument "jSubMenus" (and maybe others) not assigned during call to "tree_callbacks>fcnPopupTopoNoInterp".
**
** Call stack:
** >tree_callbacks.m at 1990
** >bst_call.m at 26
** >panel_protocols.m>CreatePanel/protocolTreeClicked_Callback at 140

""

Can you tell me why this types of error is created?

___Sheuli

Is it possible to remove this types of Warning.?

No. The warning will stay, unless you convert you discontinuous EDF+ file ("D") into a continuous EDF+ file ("C").
But you can chose to ignore this warning if your file has no discontinuities, or if your don't rely on the timing of the segments >= 2.

Another problem is that when I tried to create Power spectrum(PSD) for POL types of channel it create the following types of error

I added a test so that this error is not generated anymore: Bug fix: Right-click on a PSD file with no valid topography-enabled m… · brainstorm-tools/brainstorm3@7631b58 · GitHub
However, you should still fix your channel file: edit it and replace everywhere the type POL with EEG.

When posting questions on the forum: please post them as public topics so that other contributors can reply to your questions, and other users can get access to the answers. Also try to post only one question or/bug report by thread, to make it easier to handle.
Thanks