Load and stream data from neo files into ezmsg.
Project description
ezmsg-neo
Load and stream data from neo files into ezmsg.
Installation
pip install ezmsg-neo
Dependencies
Usage
Add the NeoIteratorUnit to your ezmsg graph as a data source. You may be interested in other ezmsg extensions for processing and visualizing the data, such as ezmsg-sigproc and ezmsg-event.
import ezmsg.core as ez
from ezmsg.neo.source import NeoIteratorUnit
from ezmsg.util.messages.key import FilterOnKey
from ezmsg.util.debuglog import DebugLog
from ezmsg.event.rate import EventRate
comps = {
"NEO": NeoIteratorUnit(filepath="path/to/file", chunk_dur=0.05),
"FILTER": FilterOnKey(key="spike"),
"RATE": EventRate(bin_duration=0.05),
"LOG": DebugLog() # Print the output to the console
}
conns = (
(comps["NEO"].OUTPUT_SIGNAL, comps["FILTER"].INPUT_SIGNAL),
(comps["FILTER"].OUTPUT_SIGNAL, comps["RATE"].INPUT_SIGNAL),
(comps["RATE"].OUTPUT_SIGNAL, comps["LOG"].INPUT),
)
ez.run(components=comps, connections=conns)
Setup (Development)
- Clone this repo and
cdinto it uv sync --all-extras --dev --python 3.10to setup your environmentuv run pytest teststo run the tests
ezmsg-neo modules are available under import ezmsg.neo
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ezmsg_neo-0.3.tar.gz.
File metadata
- Download URL: ezmsg_neo-0.3.tar.gz
- Upload date:
- Size: 6.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.5.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d2ee5df4796c4b3ab85035038ad51325bdfd446e35cf3270d432f6893c79eae
|
|
| MD5 |
9eaf684395edc28c4bc508733c694760
|
|
| BLAKE2b-256 |
1272f7b7bfc2c1475843a6b8e25174f1aac863db9180b8684fb54af00d09e902
|
File details
Details for the file ezmsg_neo-0.3-py3-none-any.whl.
File metadata
- Download URL: ezmsg_neo-0.3-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.5.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d5fab9b045596dd8e2e5d131ed4cd1563aa18bc579c5aaefc699fa0f41d5337
|
|
| MD5 |
55ecb28bb98f045a7a092b8d01cfcfb1
|
|
| BLAKE2b-256 |
1e72929c63c2d929fc5ba8358c05649d320264288c8e3e408287de1ad29d030e
|