Skip to main content

dq-genesis

ci coverage documentation pypi version

Pipeline construction and execution for the creation of the data quality vector.

dq-genesis parses a YAML DQ flag config, assembles an sgn.Pipeline from the evaluators and transforms provided by sgn-dq, and runs it against frame data (offline frame cache), shared-memory frames (online), or an Arrakis stream. The output is a uint32 DQG-DQ_VECTOR channel written to a GWF frame stream.

Install

pip install dq-genesis                   # from PyPI
pip install -e /path/to/dq-genesis       # editable install from a source checkout

dq-genesis depends on sgn-dq (evaluators, Not, Parity), sgn-ts, sgn-ligo, and sgn.

Quick start

# Validate a config
dq-genesis --flags configs/dqmodule_h1.yaml --dry-run

# Offline run against a frame cache
dq-genesis --flags configs/dqmodule_h1.yaml \
  --gps-start 1234567890 --gps-end 1234568000 \
  --frame-cache h1.cache --output-dir /tmp/out

# Bounded replay from Arrakis (omit --gps-start/--gps-end for a live stream)
dq-genesis --flags configs/dqmodule_h1.yaml \
  --arrakis --gps-start 1234567890 --gps-end 1234568000 \
  --output-dir /tmp/out

See src/dqgenesis/cli.py --help for the full argument surface.

Output destinations

The assembled DQ vector can be fanned out to one or more sinks. Select any combination of the --publish-* flags; if none is given it defaults to disk, preserving the original frame-writing behaviour.

  • --publish-disk — write the DQ vector to GWF frame files. Control the destination with --output-dir (and --write-path, --frame-duration).
  • --publish-arrakis — publish the DQ vector channel back to an Arrakis server. Requires --publisher-id; pass --replay-id to publish into a replay namespace.
# Save to GWF frames (default)
dq-genesis --flags configs/dqmodule_h1.yaml \
  --gps-start 1234567890 --gps-end 1234568000 \
  --frame-cache h1.cache --publish-disk --output-dir /tmp/out

# Publish back into Arrakis
dq-genesis --flags configs/dqmodule_h1.yaml \
  --arrakis --gps-start 1234567890 --gps-end 1234568000 \
  --publish-arrakis --publisher-id <publisher_id>

# Both at once — the DQ vector is fanned out to disk and Arrakis
dq-genesis --flags configs/dqmodule_h1.yaml \
  --arrakis --gps-start 1234567890 --gps-end 1234568000 \
  --publish-disk --output-dir /tmp/out \
  --publish-arrakis --publisher-id <publisher_id>

The output channel is named <IFO>:DQG-DQ_VECTOR by default; override it with --output-channel.

Metadata

Release files for dq-genesis 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dq-genesis 0.1.1
File Size Uploaded
dq_genesis-0.1.1.tar.gz 203.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dq-genesis 0.1.1
File Interpreter ABI Platform
dq_genesis-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 225.1 kB

Release files / dq_genesis-0.1.1.tar.gz

Download URL dq_genesis-0.1.1.tar.gz
Size 203.9 kB
Tags Source
SHA-256 checksum
How to use checksums
018eb5a6544bdf717c53666274a7f0f26830e6d770bdb7d78ca2e236be4dd778
BLAKE2b-256 checksum
How to use checksums
bcacf49b0da9c691e3b6f8d3371784be39ff74d7bb5997b7d06b7065bdb979af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.28.1

Release files / dq_genesis-0.1.1-py3-none-any.whl

Download URL dq_genesis-0.1.1-py3-none-any.whl
Size 21.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fc7795d982739730da324afe09b487aa376d53a727b5a7cee29a281271393ed3
BLAKE2b-256 checksum
How to use checksums
8fa8bcd1e06c8603ca5088f9a0a66b61c4b6f7ae0258d9075b1796156ef668a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.28.1

Release history Release notifications | RSS feed

0.2.0

2 release files

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page