MNE-realtime
[!WARNING] This project is discontinued in favor of MNE-LSL. At the moment, MNE-LSL replaces the
LSLClientand does not yet support the FieldTrip buffer.
This is a package 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.
Release files for mne-realtime 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mne-realtime-0.3.0.tar.gz | 50.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mne_realtime-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 95.1 kB
Release files / mne-realtime-0.3.0.tar.gz
| Download URL | mne-realtime-0.3.0.tar.gz |
|---|---|
| Size | 50.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5ece5d8be166c45455aa4e289261a4086f2882bf79f48f9cd206019f902b817c
|
|
BLAKE2b-256 checksum How to use checksums |
e9fcf3c396ef2d675f0545e07e7a625564a3dd11e8ebb5291bbf4858b512de54
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Release files / mne_realtime-0.3.0-py3-none-any.whl
| Download URL | mne_realtime-0.3.0-py3-none-any.whl |
|---|---|
| Size | 44.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
352a022412a411b444ee9f6126f0025c0d587f1383ee11d3ea3bebd2ea4df185
|
|
BLAKE2b-256 checksum How to use checksums |
5870bca23bdd9ac406400c778825cf56fe629bfbb49f5c77c2f95dc8ce715aaf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|