-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
ENH: Extend _repr_html_ method for Raw #9172
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
Conversation
|
I would just show the basenames of the filenames and represent the
measurement time range in hour / min / seconds
… |
Here is an example: |
|
"Measurement date" should ideally include the time too :) |
Co-authored-by: Richard Höchenberger <richard.hoechenberger@gmail.com>
Co-authored-by: Richard Höchenberger <richard.hoechenberger@gmail.com>
…/mne-python into pr/vagechirkov/9172
mne/data/html_templates.py
Outdated
| <td>{{', '.join(filenames)}}</td> | ||
| </tr> | ||
| <tr> | ||
| <th>Measurement time range</th> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think we could change this to simply "Measurement time"? Would be slightly more concise … @agramfort WDYT?
Co-authored-by: Richard Höchenberger <richard.hoechenberger@gmail.com>
|
Cool, looking good! |
|
regarding measurement time range I would rather show the duration eg (6min 13s or 8h 2min 28s). For example a sleep recording can last 10h hours and it would be spanned over different days. |
So you're proposing ? I like this. Also wondering if we should maybe include |
|
Yes and yes 👍
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM provided you manage to make CIs green
|
Thx @vagechirkov |
|
This is a real usability improvement, thanks a bunch!! |
Do you think it makes sense to create similar HTML-based representations for other MNE-Python objects? |
I was actually thinking about exactly this, yes. Most relevant for me personally would be Epochs and Evoked; but having such a nice representation for more objects eventually could make total sense!! |
Alright, I can do this. I would create a new issue for several objects to keep progress :) |
|
+1 for evoked and epochs
|






Reference issue #6846 and PR #9161
Add more information in the
_repr_html_output.