Mne-lsl

Latest version: v1.3.1

Safety actively analyzes 624665 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

1.3.1

- Improve handling of warnings throughout the codebase to improve the feedback received by mscheltienne in https://github.com/mne-tools/mne-lsl/pull/243

**Full Changelog**: https://github.com/mne-tools/mne-lsl/compare/1.3.0...1.3.1

1.3.0

What's Changed
* Add IIR filters to a `Stream` object through the methods `Stream.filter` and `Stream.notch_filter` by mscheltienne and larsoner in https://github.com/mne-tools/mne-lsl/pull/218 and https://github.com/mne-tools/mne-lsl/pull/226
* Improve logging and level handling by mscheltienne in https://github.com/mne-tools/mne-lsl/pull/219
* Add `n_repeat` argument to `Player` by mscheltienne in https://github.com/mne-tools/mne-lsl/pull/223
* Improve documentation of performance differences between `pylsl` and `mne.lsl` by mscheltienne in https://github.com/mne-tools/mne-lsl/pull/231

**Full Changelog**: https://github.com/mne-tools/mne-lsl/compare/1.2.0...1.3.0

1.2.0

- Implement MNE's design philosophy by returning `self` in methods modifying a `StreamLSL` -> enables method chaining `stream.pick("eeg").set_eeg_reference("average")`
- Add argument `annotations` to `PlayerLSL` to stream annotations on a separate irregularly sampled stream
- Add support for loaded `Raw` objects as input to a `PlayerLSL`
- Improve deletion or low-level resources
- Improve discovery and download of existing `liblsl` on the system
- Fix reading of yRange through settings in legacy `StreamViewer`

**Full Changelog**: https://github.com/mne-tools/mne-lsl/compare/1.1.1...1.2.0

1.1.1

- Fix parsing of incomplete `StreamInfo` into an `mne.Info` object by mscheltienne in https://github.com/mne-tools/mne-lsl/pull/179
- Remove `pytest` related files from the distribution by mscheltienne in https://github.com/mne-tools/mne-lsl/pull/180

**Full Changelog**: https://github.com/mne-tools/mne-lsl/compare/1.1.0...1.1.1

1.1.0

What's Changed
* Remove legacy setup.py by mscheltienne in https://github.com/mne-tools/mne-lsl/pull/167
* Improve documentation workflow by mscheltienne in https://github.com/mne-tools/mne-lsl/pull/170
* Add support for 'timestamp' array in a push operation by mscheltienne in https://github.com/mne-tools/mne-lsl/pull/172
* Add local sphinx-remove-toctrees extension by mscheltienne in https://github.com/mne-tools/mne-lsl/pull/173
* Improve type-hints by mscheltienne in https://github.com/mne-tools/mne-lsl/pull/175
* MAINT: Make tests less flaky by larsoner in https://github.com/mne-tools/mne-lsl/pull/168
* Improve test coverage on load-liblsl and on datasets by mscheltienne in https://github.com/mne-tools/mne-lsl/pull/176
* Improve test coverage, structure and checks for strean connection in properties by mscheltienne in https://github.com/mne-tools/mne-lsl/pull/177
* Match argument order between BasePlayer and PlayerLSL by mscheltienne in https://github.com/mne-tools/mne-lsl/pull/178

New Contributors
* larsoner made their first contribution in https://github.com/mne-tools/mne-lsl/pull/168

**Full Changelog**: https://github.com/mne-tools/mne-lsl/compare/1.0.0...1.1.0

Please report encountered issues on the [tracker](https://github.com/mne-tools/mne-lsl/issues).

1.0.0

Initial release of `mne-lsl` for Python `3.9` to `3.12`. MNE-LSL integrates tightly [LSL](https://github.com/sccn/labstreaminglayer) streams with [MNE-Python](https://mne.tools/stable/index.html). It replaces the `LSLClient` in `mne_realtime` with 2 main objects:

- `mne_lsl.stream.StreamLSL`: connects to an LSL stream and acts as a `Raw` object which underlying data array is a ringbuffer continuously updated.
- `mne_lsl.player.PlayerLSL`: create a fake LSL stream from any MNE-readable file.


player = mne_lsl.player.PlayerLSL(...)
player.start()
stream = mne_lsl.stream.StreamLSL(...)
stream.connect()
stream.pick("eeg")
stream.set_eeg_reference("average")
data, ts = stream.get_data()
stream.disconnect()
player.stop()


Additionally, the low-level `mne_lsl.lsl` module re-implements a faster version of [pylsl](https://github.com/labstreaminglayer/pylsl) with convenience methods to set and retrieve metadata, for instance from an `mne.Info` object.


sinfo = mne_lsl.lsl.StreamInfo(...)
sinfo.set_channel_info(info)
info = sinfo.get_channel_info()


Please report encountered issues on the [tracker](https://github.com/mne-tools/mne-lsl/issues).

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.