Closed nblauch closed 6 years ago
If you do:
from mne.io.pick import channel_type
from mne import pick_channels
pick = pick_channels(raw.info['ch_names'], ['EOG061'])
ch_type = channel_type(raw.info, pick)
print(ch_type)
what do you get?
'eog'
see proposed fix in #96
give it a try again once we merge this pull request :)
Do we not just need to add the new type to the pick list in mne_bids?
To elaborate: coil type 5 is:
FIFF.FIFFV_COIL_EEG_BIPOLAR = 5 # Bipolar EEG lead
When I did the more specific channels pick function I didn't add any of the specific eeg ones, so I think we just need to add this coil type to the list.
@monkeyman192 Mainak's solution in #96 looks good to me, but I think it'd be good to add the coil type regardless of how the issue is solved. Could you do that?
I can do, but I am far less familiar with EEG systems. If it is immediately obvious to you what the type should be perhaps it would be better for you to add it? like, is this channel an eeg or eog channel?
like, is this channel an eeg or eog channel?
Unfortunately, it could be both ... EOG channels are often recorded bipolar (almost always) ... but EEG channels can also have a bipolar referencing scheme ... I am not at all familiar with all these FIF types, that's why I asked you to do it - perhaps I'll have to look into it.
Given the channel name 'EOG061', isn't it likely to be EOG? Wish I could be more helpful - this is my first time analyzing MEG data and I did not collect this set.
@monkeyman192 the function coil_type(...)
is only for certain channel types it seems, not for EOG. It is so that we can be more precise. We could of course consider extending it for other channel types but in this case, we have a simpler solution :)
Given the channel name 'EOG061', isn't it likely to be EOG?
yes @nblauch, however the underlying FIFF types (e.g., FIFF.FIFFV_COIL_EEG_BIPOLAR
) are more general and go beyond your concrete data :-)
Thanks for reporting the issue! It should be fixed now.
@nblauch you should update your branch. I think something like:
pip install --upgrade git+https://github.com/mne-tools/mne-bids.git#egg=mne-bids
should work ...
thank you all. bids conversion worked swimmingly.
I'm using MNE-bids on an MEG dataset. The output and traceback sequence are given below.
Any idea how to fix this?
thanks, Nick