Skip to content

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

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

MRG, ENH: add _repr_html_ method in the class BaseEpochs#9189
hoechenberger merged 13 commits intomne-tools:mainfrom
vagechirkov:add-repr-html-epochs

Conversation

@vagechirkov
Copy link
Copy Markdown
Contributor

@vagechirkov vagechirkov commented Mar 23, 2021

Reference issue #9177

Add _repr_html_ for BaseEpochs:

image

(updated image)

Copy link
Copy Markdown
Member

@agramfort agramfort left a comment

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

@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

Copy link
Copy Markdown
Member

@hoechenberger hoechenberger left a comment

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 <richard.hoechenberger@gmail.com>
Co-authored-by: Richard Höchenberger <richard.hoechenberger@gmail.com>
Co-authored-by: Richard Höchenberger <richard.hoechenberger@gmail.com>
Co-authored-by: Richard Höchenberger <richard.hoechenberger@gmail.com>
@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

Copy link
Copy Markdown
Member

@hoechenberger hoechenberger left a comment

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.

Co-authored-by: Richard Höchenberger <richard.hoechenberger@gmail.com>
Copy link
Copy Markdown
Member

@hoechenberger hoechenberger left a comment

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