Hello everyone,
Iāve been using mne for a few month in order to study EEG data that comes from EEGlab.
However, since last update I canāt open them anymore with read_raw_eeglab()
Iāve checked everything from my side but I canāt make the functions works.
read_raw_eeglab return this error
`mne.io.read_raw_eeglab("D:/xxx/data_example.set")`
D:\Dev\Anaconda\lib\site-packages\mne\io\eeglab\eeglab.py in read_raw_eeglab(input_fname, eog, preload, uint16_codec, verbose)
218 """
219 return RawEEGLAB(input_fname=input_fname, preload=preload,
--> 220 eog=eog, verbose=verbose, uint16_codec=uint16_codec)
221
222
<decorator-gen-261> in __init__(self, input_fname, eog, preload, uint16_codec, verbose)
D:\Dev\Anaconda\lib\site-packages\mne\io\eeglab\eeglab.py in __init__(self, input_fname, eog, preload, uint16_codec, verbose)
353 # create event_ch from annotations
354 annot = read_annotations(input_fname)
--> 355 self.set_annotations(annot)
356 _check_boundary(annot, None)
357
<decorator-gen-201> in set_annotations(self, annotations, emit_warning, on_missing, verbose)
D:\Dev\Anaconda\lib\site-packages\mne\io\base.py in set_annotations(self, annotations, emit_warning, on_missing, verbose)
690 new_annotations._prune_ch_names(self.info, on_missing)
691 if annotations.orig_time is None:
--> 692 new_annotations.crop(0, self.times[-1] + delta,
693 emit_warning=emit_warning)
694 new_annotations.onset += self._first_time
D:\Dev\Anaconda\lib\site-packages\mne\io\base.py in times(self)
1577 def times(self):
1578 """Time points."""
-> 1579 out = _arange_div(self.n_times, float(self.info['sfreq']))
1580 out.flags['WRITEABLE'] = False
1581 return out
TypeError: expected dtype object, got 'numpy.dtype[float64]'
Thanks
E.S
- MNE-Python version: 0.24.0
- operating system: Win10