SuperNova Async Pipeline: base package
Project description
SuperNova Async Pipeline
This package contains base for asynchronous real-time data analysis pipeline. It was designed for the supernova neutrino signal detection.
Documentation: https://snap-base.readthedocs.io
Features
- Running chains of generators and functions asynchronously.
- Computationally heavy/blocking code is run in parallel threads/processes.
- Pipeline is configured in a
yaml
file, where the steps are assembled and parameters are set. - Branching support: data can be fed to parallel chains for various processing.
- IO interfaces to connect running nodes with each other:
- ZeroMQ
- Hopskotch
Installation
pip install snap-base
This will install only the core functionality.
To install also the i/o interfaces use
pip install "snap-base[io]"
Defining the pipeline
The pipeline definition consist of
- A python module (or modules) where all the processing steps should be defined
yaml
configuration file, defining how the data should flow through these steps.
While this package defines some basic functions, like sending and receiving data via ZMQ or running analysis step in parallel processes, all other needed functions will need to be defined by user in the python package.
Package snap-combine contains more utility functions for the supernova neutrino signals combinations.
Running
Go to the directory where your
Run the node named node_name
from config.yml
:
snap config.yml -n node_name
Example
Put the example module example.py and configuration example_cfg.yml in a directory.
Run the example node with branching:
snap example_cfg.yml -n node_branching
And you should see the output of the generated random walk , and it's analysis in two branches.
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
File details
Details for the file snap_base-2.0.3.tar.gz
.
File metadata
- Download URL: snap_base-2.0.3.tar.gz
- Upload date:
- Size: 25.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d1b49b1fd7c5568e3ceb08c8c44a50013f1aa19106dafd06ecbd37f44be4d1c |
|
MD5 | 15f949c60d336df1cc5a5ceba16cee03 |
|
BLAKE2b-256 | 0c07b24a6c0e93d29c505ba8ddcc28045187123fcac9a682b92a1a7f18b22327 |
File details
Details for the file snap_base-2.0.3-py3-none-any.whl
.
File metadata
- Download URL: snap_base-2.0.3-py3-none-any.whl
- Upload date:
- Size: 28.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 061c314cc21ac96dfa679ae79adcba1cd218e17e493301ef2df80bc0eeeb8b9d |
|
MD5 | 9c04b1bd2d91d20ff307269d03ef5de0 |
|
BLAKE2b-256 | 1878f44e4d11d6dbf7f575799b3e647e7336ae494526925e5f8596ed1bf8b3bc |