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
RFC: Include the number of dropped epochs in the Epochs
repr
#12549
base: main
Are you sure you want to change the base?
Conversation
Epochs
reprEpochs
repr
In general, I'm not a huge fan of excessive reprs, but since the On a slightly related note, your example reminds me that the concepts of good, bad, and dropped epochs can be confusing, especially since these change after loading. I'm not sure including even more information in the repr helps to clarify the situation. |
+1 for this change, but I agree with @cbrnr that the concepts of good/bad/dropped can be unclear. In your example, the |
The notion of good and bad has been a source of confusion for all users of MNE I've ever encountered. I'd say it's out of scope for this PR to addresses this. I'm inclined to revert my change to the string repr and only keep it for the HTML repr. would that be okay with you, @mscheltienne? |
I would keep it for both repr, I think this change is beneficial in both cases. |
Why do we need
|
I like @cbrnr's suggestion |
While you are at it, could you change the following minor things in the standard repr (to make them shorter):
This would look like this:
Maybe we should even omit trailing zeros, i.e. |
no, this will make a negative upper bound unreadable. |
hard disagree, this inconsistency in precision hurts my eyes. |
and really i don't want to touch any of this in this PR @cbrnr Can you maybe just open a new issue? Happy to discuss there |
But it doesn't bother you in the current string? We show |
yep it does bother me actually 😅 |
then again I might be inclined to cut the 0 as a special case some slack 😅😅 |
See #12550 @hoechenberger. |
Thanks @cbrnr! |
For quick diagnostic purposes and sanity checks, I find it helpful being able to quickly see how many epochs were dropped. The changes in this PR include the number of dropped epochs in the string and HTML
repr
.Before epochs were dropped:
After epochs were dropped:
After preloading:
HTML rep:
MWE: