MASS dataset/ mne function read half file when infer_types = True

  • MNE version: 1.3.0 (I tried on 1.1.0 as well)
  • operating system: Ubuntu 18.04

Hi, I’m working with the MASS dataset, and when loading some files e.g. “Biosignals_SS3/01-03-0057 PSG.edf” with the following code:

raw = mne.io.read_raw_edf("/directory/Biosignals_SS3/01-03-0057 PSG.edf",infer_types = True, preload = False)

I got a duration of 17253.0 s while the actual duration is 34506.0 s .

If I set infer_types to False I get the correct duration.

Is there a way to get the right duration while using infer_types = True ?

Any help would be appreciate :slight_smile:

can you share the file privately with me so I can try to replicate?

Alex

Hi,

I have contacted you though Discord (username: sml_mchl) as I haven’t seen a way to contact you in private in this forum.

Samuel

You can click on the user name and click on Message

Hi, I do not have that message icone, I found another way to send a direct message but I’m getting the error “you can not send direct message to this user”.

see follow up at FIX reading of EDF data with different sampling rates of a mix of data channels when using infer_types=True by agramfort · Pull Request #11427 · mne-tools/mne-python · GitHub

Alex

3 Likes

Thanks for your help :grinning: ,

Do you know when is suppose to be the next release ?

Thx,

Samuel