Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

thzdaq-core

The bench, its measurements and data, without GUI or network. Three layers; dependencies point inward and import-linter checks them (root pyproject.toml):

  • domain/ — the station and its profile format, device kinds and ports, procedures with their parameters and plots, the measurement, analysis, SIS tools. No files, clocks or threads of its own.
  • application/ — use cases that drive the domain: the measurement runner (threads, autosave, time stamps) and the ports it needs (ports.py).
  • adapters/ — files: measurements as JSON (json_store.py), profiles as YAML (yaml_profiles.py), the old program's settings.ini (legacy_profiles.py).
  • cli/ — thzdaq-station: bench profiles as files, without the daemon.

The bench daemon (thzdaq[daemon]) runs it; clients reach it only through thzdaq-api (docs/daemon.md).

Station

A profile (YAML, version 2) lists instruments (driver, connection) and the devices configured on them; ids name the kind of device (stations/2sb.example.yaml):

from thzdaq_core.adapters.yaml_profiles import load_station
from thzdaq_core.domain.station.station import Station

with Station(load_station("stations/2sb.example.yaml"), simulate=True) as station:
    bias = station.device("sis_bias_1")
    bias.set_voltage(2.3e-3)
uv run thzdaq-station show stations/2sb.example.yaml
uv run thzdaq-station check stations/2sb.example.yaml --simulate

import-legacy reads the QVariant-encoded [Configs] of the old program and needs PySide6:

uv run python -m thzdaq_core.cli.station import-legacy settings.ini --name lab -o stations/lab.yaml

Measurements

from thzdaq_core.adapters.json_store import MeasurementStore
from thzdaq_core.adapters.yaml_profiles import load_station
from thzdaq_core.application.runner import MeasurementRunner
from thzdaq_core.domain.measurements.catalog import get_procedure
from thzdaq_core.domain.station.station import Station

with Station(load_station("stations/2sb.example.yaml"), simulate=True) as station:
    runner = MeasurementRunner(station, MeasurementStore("data"))
    procedure = get_procedure("sis.current_vs_voltage")(voltage=(0, 7e-3, 351))
    measurement = runner.run(procedure, devices={"bias": "sis_bias_1"})
    print(measurement.status, len(measurement.records("iv")))
uv run thzdaq procedures
uv run thzdaq describe sis.current_vs_voltage
uv run thzdaq --simulate run sis.current_vs_voltage --device bias=sis_bias_1 --set voltage=0:7:351
uv run thzdaq show data/2026-10-29/000001_sis_current_vs_voltage.json

Procedures are listed explicitly in domain/measurements/procedures/__init__.py (BUILTIN); the catalog (domain/measurements/catalog.py) offers them by name. Measurements are JSON files data/<day>/<number>_<procedure>.json, saved while the run goes.

Metadata

Release files for thzdaq-core 0.0.6b12

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

Source distribution (sdist)

Source distribution for thzdaq-core 0.0.6b12
File Size Uploaded Provenance Actions
thzdaq_core-0.0.6b12.tar.gz 201.1 kB Without provenance Details for thzdaq_core-0.0.6b12.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for thzdaq-core 0.0.6b12
File Interpreter ABI Platform Actions
thzdaq_core-0.0.6b12-py3-none-any.whl Python 3 none any Details for thzdaq_core-0.0.6b12-py3-none-any.whl

Total release size: 374.2 kB

Release files / thzdaq_core-0.0.6b12.tar.gz

Download URL thzdaq_core-0.0.6b12.tar.gz
Size 201.1 kB
Tags Source
SHA-256 checksum
How to use checksums
0c1c5a2907901f71c8d59b89d38668bebd4c5c1b01a040e5ecb3e7d8c39b67a6
BLAKE2b-256 checksum
How to use checksums
45e16b5f6605ebd9e35ceb153af26bff3e105d3ab5d8e5d5011a9c2775209b5e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / thzdaq_core-0.0.6b12-py3-none-any.whl

Download URL thzdaq_core-0.0.6b12-py3-none-any.whl
Size 173.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7ac68c21217cd22fedee72e8086611f7a99bb669f1533862cb7cc37db6256af9
BLAKE2b-256 checksum
How to use checksums
e5de8bde8bedc414faa9cbbedcffa3c6742c9b5ccae12bd32cbfd03e812e33b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for thzdaq-core 0.0.6b12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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