forked from mne-tools/mne-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add open/save to HDF5 ability to mne.Report (mne-tools#5505)
This allows you to save `mne.Report` objects in such a way that they can be read back later. This in turn allows you to incrementally add figures to a `Report` object across scripts. The `mne.open_report` function reads back a previously saved `mne.Report` object, or creates a new one if it doesn't exist yet. In this way, it mimics the Python buildin `open` function. You can use it like this: report = mne.open_report('report.h5') report.add_figures_to_section(...) report.save('report.html') # Save to either HTML or HDF5 Or with a context manager like this: with mne.open_report('report.h5') as report: report.add_figures_to_section(...) # report is saved to HDF5 upon exiting the context block
- Loading branch information
1 parent
ee69dff
commit 9aaa663
Showing
5 changed files
with
183 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters