-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ENH]: New pyqtgraph-backend for 2D-Data-Browser (#9687)
* start abstraction of Browser-Classes * outline of data-management-class * wip refactoring MNEBrowserFigure * refactored Browser-Initialization into MNEDataBrowser * fix some style-issues and remove remnants * start with integration of pyqtgraph-prototype * make pyqtgraph optional (just for development, can be removed again for final PR) * more refactoring of mpl-methods into BrowserBase * fixes for failing tests * add docstrings in _browser.py * move _update_projector-call into BrowserBase * add use/set/get for browser * rename 2D to Browser to avoid confusion * move inheritance of BrowserBaser from MNEFigure to MNEBrowseFigure * refactored _annotation_helper from test_raw.py * fix flake * move base-classes/funcs from _browser.py back to _figure.py to facilitate review * update from upstream * remove set/get/use-browser from __init__.py again to prevent make docstring from failing * add show_browser and other adjustments for pyqtgraph * refactoring _close into BrowserBase * add block for pyqtgraph * [revert for PR] adjust plot-function to accept kwargs from benchmark * fix annotation-key still working when plotting epochs * add docstring to show_browser * refactor midpoints into BrowserBase for epochs * add show to show_broser * add pyqtgraph to browse_backend-fixture * fix block not supported in Figure.show() * WIP adapt test_raw.test_plot_raw_traces * adapt test_plot_raw_traces to make it work for matplotlib and pyqtgraph * refactor _redraw * refactor _update_data * change bad-color from rgb to hex * pyqtgraph always blocks execution * reinsert block for pyqtgraph * make _redraw not abstract anymore (not needed for pyqtgraph) * add pyqtgraph-backend * fix butterfly-bug showing channels still in old y-position [ci skip] * rebase on main [ci skip] * Set usage of OpenGL to false by default * organize keyboard-shortcuts [ci skip] * clarify index-system for traces and set z-values for traces and annotations [ci skip] * add exception-hook from pytest-qt [ci skip] * actually raise exceptions from qt [ci skip] * fix bugs annotations (removing decription/select visible) [ci skip] * reorganize imports [ci skip] * fix bug _update_regions_colors [ci skip] * add '=' to keyboard-shortcuts and make scale-steps smaller [ci skip] * import pg-backend from separate repo[ci skip] * remove pg-backend from PR[ci skip] * update repo-link to mne-tools[ci skip] * Update mne/viz/_figure.py Co-authored-by: Alexandre Gramfort <[email protected]> * remove _pg_figure from _backends[ci skip] * add browser-backend-functions to documentation[ci skip] * avoid codespell-failure [ci skip] * remove pyqtgraph from tests (tests will be run in mne-qt-browser for now) * update parameters for Raw.plot() * fix flake * fix pip install link * fix table in set_browser_backend * fix butterfly showing always all channels despite of selection * adjust test_scale_bar for pyqtgraph [ci skip] * refactor channel context figs [ci skip] * change to relative imports [ci skip] * refactor _new_child_figure [ci skip] * update some key-presses [ci skip] * adapt test_plot_raw_ssp_interaction to pyqtgraph [ci skip] * adapt test_plot_raw_child_figures to pyqtgraph [ci skip] * change default of event_lines to list [ci skip] * add drag to _fake_click [ci skip] * adapt test_annotations to pyqtgraph [ci skip] * adapt test_clock_xticks to pyqtgraph [ci skip] * remove install-question [ci skip] * adapt pyqtgraph-backend to test_plot_raw_selection [ci skip] * adapt pyqtgraph-backend to test_min_window_size [ci skip] * adapt pyqtgraph-backend to test_plot_raw_groupby [ci skip] * fix multiple tests [ci skip] * adapt annotation-test for pyqtgraph [ci skip] * fix more test-issues [ci skip] * add pyqtgraph to test_raw-suite [ci skip] * fix flake * update feature-grid * update from main branch * fix checkbox-click issue (inconsistent across OS) * fix test_plot_raw_ssp_interaction for linux * update from upstream2 * fix flake * simplify ssp_interaction * fix test_min_window_size for Windows-CI * fix flake * implement review-feedback #1 * fix _proj_click_all for inconsistent fake-click-behaviour * clarify docs for preload * fix flake * [Refactor]: browser_backend-fixture for consistency * DOC: Add doc comments for block * add speed test * rename preload to precompute * fix unused import * remove unnecessary parameters * remove speed-test * remove automatic installation of mne-qt-browser * revert removal of automatic installation until mne-qt-browser is uploaded to PyPi * FIX: Route through call * add mne-qt-browser to requirements.txt * update latest.inc * fix flake * fix latest.inc * update test-dependencies * specify docs regarding block-behaviour * fix typo in github_actions_dependencies.sh * fix docstring for plot_raw * fix docstring for plot_raw again * fix docstring for plot_raw * add mne-qt-browser to azure_dependencies.sh * add mne-qt-browser to environment.yml * specify latest.inc * specifiy use_opengl documentation * Update mne/viz/_figure.py Co-authored-by: Eric Larson <[email protected]> * FIX: Fix test [skip azp] [skip circle] * FIX: Path [skip azp] [skip circle] * revert color-name-changes * MAINT: Test only on one run * FIX: Remove * MNT: Add to mne sys_info * DOC: Fix doc build * FIX: Better * DOC: Add link to mne-qt-browser issues in docs * Update mne/utils/docs.py Co-authored-by: Daniel McCloy <[email protected]> * Update mne/utils/docs.py Co-authored-by: Daniel McCloy <[email protected]> * Update mne/viz/raw.py Co-authored-by: Daniel McCloy <[email protected]> * FIX: fix flake * FIX: Test * FIX: Correct check * STY: Flake * FIX: One more mark Co-authored-by: Alexandre Gramfort <[email protected]> Co-authored-by: Eric Larson <[email protected]> Co-authored-by: Daniel McCloy <[email protected]>
- Loading branch information
1 parent
b97da43
commit 5bafe52
Showing
25 changed files
with
876 additions
and
532 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
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 |
---|---|---|
|
@@ -42,3 +42,4 @@ dependencies: | |
- pooch | ||
- pip: | ||
- ipyvtklink | ||
- mne-qt-browser |
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.