Skip to main content

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)

  1. Clone this repo and cd into it
  2. uv sync --all-extras --dev --python 3.10 to setup your environment
  3. uv run pytest tests to run the tests

ezmsg-neo modules are available under import ezmsg.neo

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

ezmsg_neo-0.3.tar.gz (6.8 MB view details)

Uploaded Source

Built Distribution

ezmsg_neo-0.3-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

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

Hashes for ezmsg_neo-0.3.tar.gz
Algorithm Hash digest
SHA256 5d2ee5df4796c4b3ab85035038ad51325bdfd446e35cf3270d432f6893c79eae
MD5 9eaf684395edc28c4bc508733c694760
BLAKE2b-256 1272f7b7bfc2c1475843a6b8e25174f1aac863db9180b8684fb54af00d09e902

See more details on using hashes here.

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

Hashes for ezmsg_neo-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0d5fab9b045596dd8e2e5d131ed4cd1563aa18bc579c5aaefc699fa0f41d5337
MD5 55ecb28bb98f045a7a092b8d01cfcfb1
BLAKE2b-256 1e72929c63c2d929fc5ba8358c05649d320264288c8e3e408287de1ad29d030e

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