-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DOC: Clearer error message for bad events (tuple) #6455
Comments
did it work with 0.18? can you share the .vrmk file?
… |
That worked with 0.17. I send you the link for the files. Thank you. William |
I just tried on current master and maint/0.18 branch and it works for me to
do:
In [*1*]: *import* *mne*
In [*2*]: raw = mne.io.read_raw_brainvision('Pilote1.vhdr')
what version of mne are you using? how did you install it?
|
It's 0.18.1. I install it with pycharm updated. |
ok I just uploaded 0.18.2
please udpate and try again.
… |
I updated but I have the same trouble after computed mne.Epochs() epochs = mne.Epochs(raw, events, event_id=[65, 66], tmin=-0.5, tmax=1.0, baseline=(-0.25, 0), picks=None,preload=False, reject=None, flat=None, proj=True, decim=1, reject_tmin=None, reject_tmax=None, detrend=None,on_missing='error', reject_by_annotation=True, metadata=None, verbose=None) |
can you run |
mne.sys_info() |
this is really weird. Can someone replicate the issue around you? |
You can debug locally, too. When you get this error, you can do:
What |
I think we fixed the pb IRL this morning. It's because @WilliamLabCea passed the output of events_from_annotations to events while it returns events and event_id as tuple |
Can we improve the error message somehow? Probably by something like:
|
ok
PR welcome
… |
…e-tools#6852) * better error when events is tuple (closes mne-tools#6455) * add tests
Hello,
I met a problem with mne.epoch() on v18. Please find the example code and the error bellow.
(I can share share the data on request)
Thank in advance.
William
The text was updated successfully, but these errors were encountered: