jstout211 / enigma_MEG

Other
9 stars 1 forks source link

Datasets without emptyroom not running properly #9

Closed jstout211 closed 1 year ago

jstout211 commented 1 year ago
ValueError                                Traceback (most recent call last)
Cell In [7], line 1
----> 1 proc.load_data()

File /vf/users/MEGmodules/modules/enigma_meg0.2_extras/enigma_MEG/enigmeg/process_meg.py:188, in process.load_data(self)
    186     self.raw_rest.pick_types(meg=True, eeg=False)
    187 if not hasattr(self, 'raw_eroom'):
--> 188     self.raw_eroom = load_data(self.meg_er_raw.fpath) 
    189     self.raw_eroom.pick_types(meg=True, eeg=False)

File /vf/users/MEGmodules/modules/enigma_meg0.2_extras/enigma_MEG/enigmeg/process_meg.py:553, in load_data(filename)
    552 def load_data(filename):
--> 553     datatype, _ = check_datatype(filename)
    554     dataloader = return_dataloader(datatype)
    555     raw = dataloader(filename, preload=True)

File /vf/users/MEGmodules/modules/enigma_meg0.2_extras/enigma_MEG/enigmeg/process_meg.py:539, in check_datatype(filename)
    537     return 'kit', None
    538 else:
--> 539     raise ValueError('Could not detect datatype')
jstout211 commented 1 year ago

This is fixed in 913824ecd192cd1d1d59ff698db8751b64ada1fb