Skip to main content

A new backend based on pyqtgraph for the 2D-Data-Browser in MNE-Python.

Project description

mne-qt-browser

A new backend based on pyqtgraph for the 2D-Data-Browser in MNE-Python.

This repository hosts the code for an alternative backend for plotting 2D-Data with MNE-Python.

The backend is based on pyqtgraph which uses Qt's Graphics View Framework for the plotting. Development started as a 2021's Google Summer of Code Project. Currently, only Raw.plot() is supported. For the future support for Epochs and ICA-Sources is planned.

Usage

Import mne-python

import mne

To use the new backend, set pyqtgraph as backend with

mne.viz.set_browser_backend("pyqtgraph")

or to set it permanently with

mne.set_config('MNE_BROWSE_BACKEND', 'pyqtgraph')

Then load and plot your Raw-data, e.g. by using:

raw = mne.io.read_raw("path to your data")
raw.plot(block=True)

If you want to try the browser with the sample-dataset from mne-python, run mne-qt-browser from the terminal.

Report Bugs & Feature Requests

Please report bugs and feature requests in the issues of this repository.

Development and testing

You can run a benchmark locally with:

$ pytest -m benchmark mne_qt_browser

To run tests, clone mne-python, and then run the PyQtGraph tests with e.g.:

$ pytest -m pgtest ../mne-python/mne/viz/tests

If you do not have OpenGL installed, this will currently raise errors, and you'll need to add this line to mne/conftest.py after the error:: line:

    ignore:.*PyOpenGL was not found.*:RuntimeWarning

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mne-qt-browser-0.1.6.tar.gz (41.3 kB view details)

Uploaded Source

Built Distribution

mne_qt_browser-0.1.6-py3-none-any.whl (37.2 kB view details)

Uploaded Python 3

File details

Details for the file mne-qt-browser-0.1.6.tar.gz.

File metadata

  • Download URL: mne-qt-browser-0.1.6.tar.gz
  • Upload date:
  • Size: 41.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.25.1 setuptools/57.0.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for mne-qt-browser-0.1.6.tar.gz
Algorithm Hash digest
SHA256 6678afb40825236749aed47aa1161bee3c52223e8d2821bf9a8d95f9ca237efd
MD5 23617793b677ec805c768ee49ee3752b
BLAKE2b-256 5feebcf1aaf0bd170b6befbf2cf8041c71acb56f574bdf72094df8d840f5bc65

See more details on using hashes here.

File details

Details for the file mne_qt_browser-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: mne_qt_browser-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 37.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.25.1 setuptools/57.0.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for mne_qt_browser-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 1ea0338f6ce77905ace22bd5bf27c3ef9861fee8dfbc8ec7de6e506d96d17aa1
MD5 93e9280c3ca1724010dd1565b1d1c3b2
BLAKE2b-256 5f982e38b5245bd5b894788fe2a1020e5d9bd51853cb595383c520ecaa614780

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page