Skip to content

MRG, ENH: add _repr_html_ method in the class BaseEpochs - #9189

Merged
hoechenberger merged 13 commits into
mne-tools:mainfrom
vagechirkov:add-repr-html-epochs
Mar 25, 2021
Merged

hoechenberger merged 13 commits into
mne-tools:mainfrom
vagechirkov:add-repr-html-epochs

Conversation

@vagechirkov

@vagechirkov vagechirkov commented Mar 23, 2021 •

Copy link
Copy Markdown
Contributor

Reference issue #9177

Add _repr_html_ for BaseEpochs:

image

(updated image)

@agramfort agramfort left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

the report should also be updated accordingly to use the template for -epo.fif files.

thx @vagechirkov

Comment thread mne/epochs.py Resolved
Comment thread mne/epochs.py Resolved
Comment thread mne/epochs.py Resolved
@agramfort

Copy link
Copy Markdown
Member

diff looks good

can you touch the plot_report file and maybe another one so we see in the doc artifact how it looks?

also don't forget to update what's new.

thx @vagechirkov

Comment thread mne/data/html_templates.py Resolved
Comment thread mne/data/html_templates.py Resolved
Comment thread mne/epochs.py Resolved
Comment thread mne/epochs.py Resolved
Comment thread mne/epochs.py Resolved

@hoechenberger hoechenberger left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for your work on this! I left a few comments; looks good to me generally; I'd like to encourage you to make use of f-strings; also special-casing None in Epochs.baseline should not be necessary.

vagechirkov and others added 3 commits March 25, 2021 10:25
Co-authored-by: Richard Höchenberger <[email protected]>
Co-authored-by: Richard Höchenberger <[email protected]>
Co-authored-by: Richard Höchenberger <[email protected]>
Comment thread mne/data/html_templates.py Resolved
Co-authored-by: Richard Höchenberger <[email protected]>
@vagechirkov

Copy link
Copy Markdown
Contributor Author

diff looks good

can you touch the plot_report file and maybe another one so we see in the doc artifact how it looks?

also don't forget to update what's new.

thx @vagechirkov

As far as I understood there are no epochs files in the example dataset. Here is the output of the report after I created one:

image

@hoechenberger hoechenberger left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks very clean! Just one small suggestion.

Comment thread doc/changes/latest.inc Resolved
Co-authored-by: Richard Höchenberger <[email protected]>

@hoechenberger hoechenberger left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

All good for me once CI goes green and artifact still looks okay!

@hoechenberger hoechenberger changed the title ENH: add _repr_html_ method in the class BaseEpochs MRG, ENH: add _repr_html_ method in the class BaseEpochs Mar 25, 2021
@hoechenberger
hoechenberger merged commit a98c4f5 into mne-tools:main Mar 25, 2021
@hoechenberger

Copy link
Copy Markdown
Member

Thanks, @vagechirkov!

@vagechirkov
vagechirkov deleted the add-repr-html-epochs branch March 25, 2021 17:11
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.

3 participants