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 spectrum class (mne-tools#10184)
* STY: alphabetize imports * wip: first sketch of spectrum class [ci skip] implement __repr__; add placeholder _repr_html_ add draft of _repr_html_ default to multitaper for Evokeds make raw.plot_psd() use the new code path unify viz.plot_raw_psd code path too support unaggregated multitaper add picks param to spectrum.plot() fix(ish) the units() method allow average=False as synonym for None handle unaggregated estimates in combo with epochs fix CI plotting implement get_data method [ci skip] * refactor aggregation * fix instance type checking * improve TODO notes * WIP use new class in plot_psd_topo [ci skip] * docdict additions * implement Spectrum.to_data_frame * test Spectrum.to_data_frame * adapt to_data_frame for unaggregated spectra [ci skip] * test unaggregated welch to df * test unagg multitaper to df * make tests more similar * make DRY * fix epoch test * simplify test * fix flake * use requires_pandas * fix bad rebase * fix API for epochs * use new API in example * tiny docstring improvement * fix unused import * fix docdict key order * do it the smarter/safer way * update tests to avoid deprecated calls * better deprectation message * convert more deprecated func calls to new method * unused imports * fix tests * more unused imports * fix circular imports also: - apply isort to a couple files - revert distracting isort on otherwise barely touched file * make CIs pass * get I/O working * don't store verbose attr * test IO * fix D202 * fix flake * better docstring for save method and read func * fix compute_psd docstring * return value descr * decorate test (h5py) * fixup after rebase * reorder methods * add __getitem__ functionality * __getitem__ tests * add __eq__, test for .copy(), refactor IO test * refactor to separate epochs class * EpochsSpectrum IO * fix type checking, better variable naming * test evoked IO too [ci skip] * fix type checking some more * adjust .units() for complex multitaper data * fix flake * docstring refactor * working plot_topomap implementation * fix docstring tests * fix pydocstyle * add EpochsSpectrum to the public API * make test more DRY * tweak deprecation message * docdict/docstrings fixes * add plot_psd_topomap to mixin * pytest limitation workaround * work toward unifying plot_topomap API * don't silently overwrite units * TODO comments [ci skip] * WIP tutorial changes * TODO: plot_psd_topo * WIP plot_topo & docdict stuff * plot_topomap docstring dedup * dedup legacy n_fft default * fix varname * more WIP plot_psd_topo * finish migrating plot_psd_topo to mixin * use new code path for plot_topomap * flake * docstring tests * unused imports * whitespace * flake * flake again * add plot_topo as spectrum method * don't do too much * fix test * flake * fix test * fix tutorial * WIP spectrum class tutorial * codespell * update tutorial and repr_html template * better repr, better shape checking * tweaks from self-review * update changelog * flake * fix * undo isort / other unrelated changes * use new API in tutorial * remove redundant plt_show * standardize docstring order * explain setup.cfg entry * fix html repr of units * simplify __eq__ by improving object_diff * remove deepcopy override * fix flake8 config * remove superfluous BibTeX fields [ci skip] Co-authored-by: Marijn van Vliet <[email protected]> * misc fixes [ci skip] Co-authored-by: Marijn van Vliet <[email protected]> * Update mne/viz/utils.py [ci skip] Co-authored-by: Eric Larson <[email protected]> * update old tutorials more thoroughly * file encoding / test comments Co-authored-by: Marijn van Vliet <[email protected]> * use __setstate__ and __getstate__ * flake * fix reject_by_annot appearing where it shouldn't * fix docstrings Co-authored-by: Marijn van Vliet <[email protected]> Co-authored-by: Eric Larson <[email protected]>
- Loading branch information
1 parent
6cebb13
commit 93485e0
Showing
40 changed files
with
2,397 additions
and
713 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -327,3 +327,6 @@ ul.icon-bullets { | |
img.hidden { | ||
visibility: hidden; | ||
} | ||
td.justify { | ||
text-align-last: justify; | ||
} |
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
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
Oops, something went wrong.