Skip to main content

A module for real-time data analysis with MNE.

Project description

Azure CircleCI Codecov

MNE-realtime

This is a repository for realtime analysis of MEG/EEG data with MNE. The documentation can be found here:

Dependencies

Installation

We recommend the Anaconda Python distribution. We require that you use Python 3. You may choose to install mne-realtime via pip.

Besides numpy and scipy (which are included in the standard Anaconda installation), you will need to install the most recent version of MNE using the pip tool:

$ pip install -U mne

Then install mne-realtime:

$ pip install https://api.github.com/repos/mne-tools/mne-realtime/zipball/main

These pip commands also work if you want to upgrade if a newer version of mne-realtime is available. If you do not have administrator privileges on the computer, use the --user flag with pip.

Quickstart

info = mne.io.read_info(op.join(data_path, 'MEG', 'sample',
                        'sample_audvis_raw.fif'))
with FieldTripClient(host='localhost', port=1972,
                     tmax=30, wait_max=5, info=info) as rt_client:
    rt_epochs = RtEpochs(rt_client, event_id, tmin, tmax, ...)
    rt_epochs.start()
    for ev in rt_epochs.iter_evoked():
        epoch_data = ev.data

    # or alternatively, get last n_samples
    rt_epoch = rt_client.get_data_as_epoch(n_samples=500)
    continuous_data = rt_epoch.get_data()

The FieldTripClient supports multiple vendors through the FieldTrip buffer. It can be replaced with other clients such as LSLClient. See API for a list of clients.

Bug reports

Use the github issue tracker to report bugs.

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-realtime-0.1.1.tar.gz (47.8 kB view details)

Uploaded Source

Built Distribution

mne_realtime-0.1.1-py3-none-any.whl (43.0 kB view details)

Uploaded Python 3

File details

Details for the file mne-realtime-0.1.1.tar.gz.

File metadata

  • Download URL: mne-realtime-0.1.1.tar.gz
  • Upload date:
  • Size: 47.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.5 tqdm/4.62.1 importlib-metadata/4.0.1 keyring/23.0.1 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.0

File hashes

Hashes for mne-realtime-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7eb763dc75ad45572b7d3a7e26b08503ece6bcc9bdea82d8dde95b8ca339ad23
MD5 bcafe64d3f9bd1020a9546981ca15937
BLAKE2b-256 261cd41a7df1f8d87eeec69c15f7a90e4ed1700d4eaf12a9dafd2085f499f58f

See more details on using hashes here.

Provenance

File details

Details for the file mne_realtime-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: mne_realtime-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 43.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.5 tqdm/4.62.1 importlib-metadata/4.0.1 keyring/23.0.1 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.0

File hashes

Hashes for mne_realtime-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9ccd4ceb3b8e5f98e788fc5cd647891e0934416b5d18732e273d8ceb2c9e7842
MD5 370c2c222ad8330974e5b9f2c6b39d65
BLAKE2b-256 7397d179625ebedbafe2a73d230cefaf75f4d6fdb89a46a8784c653b47e3a469

See more details on using hashes here.

Provenance

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