Skip to content
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

MAINT: Cleaner traceback on error #951

Merged
merged 6 commits into from
May 28, 2024
Merged

MAINT: Cleaner traceback on error #951

merged 6 commits into from
May 28, 2024

Conversation

larsoner
Copy link
Member

No need for changelog update I think, just shortens the traceback and fails faster when cross_val_score fails for CSP just like it does for other decoding types.

@larsoner
Copy link
Member Author

Error is unrelated but I'll investigate to see if I can figure out where it's coming from. Probably a plt.close(fig) missing somewhere!

@@ -1,9 +1,10 @@
{# Modified from https://github.com/mkdocstrings/python/blob/master/src/mkdocstrings_handlers/python/templates/material/_base/attribute.html #}
{# Updated 2024/05/20. See "START NEW CODE" for block that is new. #}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So the real necessary change here was to git mv the file. But while I was at it I also took the latest version from the URL above. We'll see if it renders okay. If not we can revert

@larsoner
Copy link
Member Author

title=f"{kind} cleaning",
caption=caption,
section=title,
tags=tags,
replace=True,
)
plt.close(fig)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need this one for green CIs and this PR is pretty trivial I think, so I'll go ahead and merge. Happy to make changes if you see issues though @hoechenberger

@larsoner larsoner merged commit fafdaeb into mne-tools:main May 28, 2024
52 checks passed
@larsoner larsoner deleted the raise branch May 28, 2024 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant