Issue when reading gdf files {Disarmed}

External Email - Use Caution

Hello everyone!

For the last month I've been toying around with the BCI IV 2a dataset and I
noticed a weird behaviour when I used read_raw_gdf function to import the
data. Particularly, when I tried to plot the gdf data the plot looked
something like this:
*> raw = mne.io.read_raw.gdf(gdf_path)*
*> raw.plot()*
[image: figure1.png]

Today, I noticed that in the raw.info the lowpass and highpass values where
switched
*> raw.info <http://secure-web.cisco.com/1tf0jte3giT4_FYAKjyvbNhol4wm9ZVoZ5Eb-cFanIfJoQCtmSz6mz_3EJ1fGdOgXmvos8bfMyexQxmytKbVHgvTvKhSY3R0dR8vnYVtu7EFCDa5PxbSvepOe-obq-tgYcmfHLoi6pnCKAOzLdtLtKMANmylz8o1nbSTg5iAwb25QtDzRQCCFmUQh0hMHzvWhTNpkVD6F1IweswHL-Rz7cyQ5ZFIAGArw8_3reKmvkpV6Y97VaF7CiBU0LRquSB5C6SFjDcnSjPrbRYCxUGXqig/http%3A%2F%2Fraw.info>*

*<Info | 9 non-empty values bads: [] ch_names: EEG:C3, EEG:Cz, EEG:C4 chs:
3 EEG custom_ref_applied: False file_id: 4 items (dict) highpass: 100.0
Hz lowpass: 0.5 Hz meas_date: 2005-10-25 09:35:11 UTC meas_id: 4 items
(dict) nchan: 3 projs: [] sfreq: 250.0 Hz*

So, I switched the values of the filters and everything worked fine as
shown below
*> raw.info <http://secure-web.cisco.com/1tf0jte3giT4_FYAKjyvbNhol4wm9ZVoZ5Eb-cFanIfJoQCtmSz6mz_3EJ1fGdOgXmvos8bfMyexQxmytKbVHgvTvKhSY3R0dR8vnYVtu7EFCDa5PxbSvepOe-obq-tgYcmfHLoi6pnCKAOzLdtLtKMANmylz8o1nbSTg5iAwb25QtDzRQCCFmUQh0hMHzvWhTNpkVD6F1IweswHL-Rz7cyQ5ZFIAGArw8_3reKmvkpV6Y97VaF7CiBU0LRquSB5C6SFjDcnSjPrbRYCxUGXqig/http%3A%2F%2Fraw.info>["highpass"] = 0.5*
*> raw.info <http://secure-web.cisco.com/1tf0jte3giT4_FYAKjyvbNhol4wm9ZVoZ5Eb-cFanIfJoQCtmSz6mz_3EJ1fGdOgXmvos8bfMyexQxmytKbVHgvTvKhSY3R0dR8vnYVtu7EFCDa5PxbSvepOe-obq-tgYcmfHLoi6pnCKAOzLdtLtKMANmylz8o1nbSTg5iAwb25QtDzRQCCFmUQh0hMHzvWhTNpkVD6F1IweswHL-Rz7cyQ5ZFIAGArw8_3reKmvkpV6Y97VaF7CiBU0LRquSB5C6SFjDcnSjPrbRYCxUGXqig/http%3A%2F%2Fraw.info>["lowpass"] = 100*
*> raw.plot()*
[image: figure2.png]

Am I doing something wrong when reading the gdf files?

Regards,
Apostolis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20201127/661d537a/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: figure2.png
Type: image/png
Size: 369448 bytes
Desc: not available
Url : http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20201127/661d537a/attachment-0002.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: figure1.png
Type: image/png
Size: 54991 bytes
Desc: not available
Url : http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20201127/661d537a/attachment-0003.png

External Email - Use Caution

hi Apostolos,

I suspect a bug in the GDF reader.

please open an issue on github providing the url of the problematic file.

Thanks for reporting the issue

Alex

        External Email - Use Caution

Hello everyone!

For the last month I've been toying around with the BCI IV 2a dataset and
I noticed a weird behaviour when I used read_raw_gdf function to import the
data. Particularly, when I tried to plot the gdf data the plot looked
something like this:
*> raw = mne.io.read_raw.gdf(gdf_path)*
*> raw.plot()*
[image: figure1.png]

Today, I noticed that in the *MailScanner has detected a possible fraud
attempt from "secure-web.cisco.com" claiming to be* raw.info
<http://secure-web.cisco.com/1tf0jte3giT4_FYAKjyvbNhol4wm9ZVoZ5Eb-cFanIfJoQCtmSz6mz_3EJ1fGdOgXmvos8bfMyexQxmytKbVHgvTvKhSY3R0dR8vnYVtu7EFCDa5PxbSvepOe-obq-tgYcmfHLoi6pnCKAOzLdtLtKMANmylz8o1nbSTg5iAwb25QtDzRQCCFmUQh0hMHzvWhTNpkVD6F1IweswHL-Rz7cyQ5ZFIAGArw8_3reKmvkpV6Y97VaF7CiBU0LRquSB5C6SFjDcnSjPrbRYCxUGXqig/http%3A%2F%2Fraw.info&gt;
the lowpass and highpass values where switched
*> MailScanner has detected a possible fraud attempt from
"secure-web.cisco.com" claiming to be raw.info
<http://secure-web.cisco.com/1tf0jte3giT4_FYAKjyvbNhol4wm9ZVoZ5Eb-cFanIfJoQCtmSz6mz_3EJ1fGdOgXmvos8bfMyexQxmytKbVHgvTvKhSY3R0dR8vnYVtu7EFCDa5PxbSvepOe-obq-tgYcmfHLoi6pnCKAOzLdtLtKMANmylz8o1nbSTg5iAwb25QtDzRQCCFmUQh0hMHzvWhTNpkVD6F1IweswHL-Rz7cyQ5ZFIAGArw8_3reKmvkpV6Y97VaF7CiBU0LRquSB5C6SFjDcnSjPrbRYCxUGXqig/http%3A%2F%2Fraw.info&gt;\*

*<Info | 9 non-empty values bads: ch_names: EEG:C3, EEG:Cz, EEG:C4 chs:
3 EEG custom_ref_applied: False file_id: 4 items (dict) highpass: 100.0
Hz lowpass: 0.5 Hz meas_date: 2005-10-25 09:35:11 UTC meas_id: 4 items
(dict) nchan: 3 projs: sfreq: 250.0 Hz*

So, I switched the values of the filters and everything worked fine as
shown below
*> MailScanner has detected a possible fraud attempt from
"secure-web.cisco.com" claiming to be raw.info
<http://secure-web.cisco.com/1tf0jte3giT4_FYAKjyvbNhol4wm9ZVoZ5Eb-cFanIfJoQCtmSz6mz_3EJ1fGdOgXmvos8bfMyexQxmytKbVHgvTvKhSY3R0dR8vnYVtu7EFCDa5PxbSvepOe-obq-tgYcmfHLoi6pnCKAOzLdtLtKMANmylz8o1nbSTg5iAwb25QtDzRQCCFmUQh0hMHzvWhTNpkVD6F1IweswHL-Rz7cyQ5ZFIAGArw8_3reKmvkpV6Y97VaF7CiBU0LRquSB5C6SFjDcnSjPrbRYCxUGXqig/http%3A%2F%2Fraw.info&gt;\[&quot;highpass&quot;\]
= 0.5*
*> MailScanner has detected a possible fraud attempt from
"secure-web.cisco.com" claiming to be raw.info
<http://secure-web.cisco.com/1tf0jte3giT4_FYAKjyvbNhol4wm9ZVoZ5Eb-cFanIfJoQCtmSz6mz_3EJ1fGdOgXmvos8bfMyexQxmytKbVHgvTvKhSY3R0dR8vnYVtu7EFCDa5PxbSvepOe-obq-tgYcmfHLoi6pnCKAOzLdtLtKMANmylz8o1nbSTg5iAwb25QtDzRQCCFmUQh0hMHzvWhTNpkVD6F1IweswHL-Rz7cyQ5ZFIAGArw8_3reKmvkpV6Y97VaF7CiBU0LRquSB5C6SFjDcnSjPrbRYCxUGXqig/http%3A%2F%2Fraw.info&gt;\[&quot;lowpass&quot;\]
= 100*
*> raw.plot()*
[image: figure2.png]

Am I doing something wrong when reading the gdf files?

Regards,
Apostolis
_______________________________________________
Mne_analysis mailing list
Mne_analysis at nmr.mgh.harvard.edu
Mne_analysis Info Page

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20201129/d6c91c7c/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: figure2.png
Type: image/png
Size: 369448 bytes
Desc: not available
Url : http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20201129/d6c91c7c/attachment-0002.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: figure1.png
Type: image/png
Size: 54991 bytes
Desc: not available
Url : http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20201129/d6c91c7c/attachment-0003.png

External Email - Use Caution

Hello!

I just downloaded the data sets from http://secure-web.cisco.com/1DOytGcgnH_P8b5xGsKj4GyC-qJRWmVl5VGHcYaQ6aBgFiDZnDkEhRRGVXi6IXSdMi0Ba3TYpOUGs9F5GYYBUtCxOLIFqnVZjo4cOO7__bLw59Ji2R_-4nqtNrdqVzekjvqYkeUrg2ML1WWm229kRH-bx7kU__Q0m_alyeCY1-UIQZMBCT30xG0GZlwn9rcV3mQ9RdOwaC5rqNSrUKdceMBbFoqW2jaK5qIxbYA3rlsAS8frjht2trTU2SJQoIVXN33-1ImaYQZkR4GZ_PwoHYA/http%3A%2F%2Fbbci.de%2Fcompetition%2Fiv%2Fdownload%2F and opened A01T.gdf and I cannot reproduce the problem; filter settings look OK, e.g. for A01T:

<Info | 7 non-empty values
bads:
ch_names: EEG-Fz, EEG-0, EEG-1, EEG-2, EEG-3, EEG-4, EEG-5, EEG-C3, EEG-6, ...
chs: 25 EEG
custom_ref_applied: False
highpass: 0.5 Hz
lowpass: 100.0 Hz
meas_date: 2005-01-17 12:00:00 UTC
nchan: 25
projs:
sfreq: 250.0 Hz

Where did you download the data and which data set shows this problem? It looks your file has been processed because it only contains 3 channels (as opposed to 25 in the original file).

Clemens