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
Fixing pickling of AutoReject objects #193
Conversation
- simplifying read_auto_reject to instantiate default AutoReject object before setting state - adding pickling to io tests
Looks like the CI fails due to an unrelated problem. But we can't merge the PR with CIs failing. Are you able to reproduce the problem locally on your machine? I can't seem to reproduce with MNE master ... |
also don't forget to update |
@jasmainak weird, can't reproduce that either on my side. I can investigate a bit more tomorrow. |
Thank you so much! |
Quick update: after a little more digging, it looks like the error happens when mne tries to convert the default color values to be used passed by autoreject. In the stable version, there used to be a check before trying to convert the color value to an RGBA value: https://github.com/mne-tools/mne-python/blob/4944aa28c5abdad44cdab2293955fd73e29da683/mne/viz/epochs.py#L1185 In mne-master though, there is no check before the conversion, and so the function tries to convert |
woops, looks like I missed @drammock's comment between my emails. @drammock is there an easy fix for this? |
Codecov Report
@@ Coverage Diff @@
## master #193 +/- ##
==========================================
+ Coverage 94.80% 94.89% +0.08%
==========================================
Files 5 5
Lines 905 901 -4
==========================================
- Hits 858 855 -3
+ Misses 47 46 -1
Continue to review full report at Codecov.
|
Thx @hubertjb |
That was an efficient fix. Thanks @agramfort and @jasmainak ! |
Thanks @hubertjb ! :) |
This PR fixes issue #192.