Control and monitoring utilities for the Phantom HV supply developed for SWGO at MPIK.
Project description
Phantom HV Control & Monitoring Software
This repository contains software to control and monitor a Phantom HV crate via Ethernet. The Phantom HV hardware is a modular 3-RU system that combines high-voltage supplies and high-frequency pulse pick-off circuits to operate photomultiplier tubes (PMTs). It has been designed for the SWGO and lab applications.
Software installation
You can find the newest packaged release of this library on PyPi. Untagged versions are released on TestPyPi as well.
Install via pip install phantom-hv.
Upgrade to the newest release with pip install -U phantom-hv.
Requirements
- Python 3 for the core library and command-line interface
- nicegui, pywebview, plotly and numpy for the Web UI (install via conda/mamba
or pip)
- note that pywebview (which is only needed for displaying the UI in a native
application window) may require additional GUI framework components with
Python extensions, especially on an otherwise headless server (e.g. by
installing
pywebview[qt], see the documentation)
- note that pywebview (which is only needed for displaying the UI in a native
application window) may require additional GUI framework components with
Python extensions, especially on an otherwise headless server (e.g. by
installing
Tools
If installed via pip this library provides two tools:
phantomhv-ctlis a command-line interface to control and monitor a Phantom HV modulephantomhv-webuiprovides a web interface with realtime plotting
phantomhv-ctl command-line tool
usage: phantomhv-ctl [-h] {boot,reset,flash,unlock-hv,lock-hv,enable-hv,disable-hv,set,monitor} ...
Low-level control and monitoring command-line tool for Phantom HV modules.
positional arguments:
{boot,reset,flash,unlock-hv,lock-hv,enable-hv,disable-hv,set,monitor}
boot boot application slot
reset reset into bootloader
flash flash binary firmware image into application slot
unlock-hv enable HV
lock-hv disable HV
enable-hv enable HV channel
disable-hv disable HV channel
set set hardware registers
monitor continuously read and print slave states
options:
-h, --help show this help message and exit
phantomhv-webui web interface
usage: phantomhv-webui [-h] [--address ip:port] [--num-slots {1,2,3,4,5,6,7,8}] [--show | --bind hostname:port]
Web UI to monitor and control a Phantom HV crate.
options:
-h, --help show this help message and exit
--address ip:port IP address or hostname of the device (default: 192.168.1.115:512)
--num-slots {1,2,3,4,5,6,7,8}
number of modules to display (default: 1)
--show open UI in native window
--bind hostname:port bind web server to a specific network interface/port (default: 127.0.0.1:8080; use 0.0.0.0 to bind to all interfaces)
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 phantom_hv-0.1.7.tar.gz.
File metadata
- Download URL: phantom_hv-0.1.7.tar.gz
- Upload date:
- Size: 2.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
75ea91c56060d9d5ed1952d747de39bb5968a5e3ba09e2cbc44db6be06fdd037
|
|
| MD5 |
eb53382da058747a39128b5375b55e28
|
|
| BLAKE2b-256 |
27bad7c995dbe37d1ba2e5552a45b4a1c3c7cd0dd2decd598f5f2240f92f3d22
|
Provenance
The following attestation bundles were made for phantom_hv-0.1.7.tar.gz:
Publisher:
publish.yml on fwerner/phantom-hv
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
phantom_hv-0.1.7.tar.gz -
Subject digest:
75ea91c56060d9d5ed1952d747de39bb5968a5e3ba09e2cbc44db6be06fdd037 - Sigstore transparency entry: 187738196
- Sigstore integration time:
-
Permalink:
fwerner/phantom-hv@9ae9798f43706fff1d23047236ee386dc754d0f5 -
Branch / Tag:
refs/tags/v0.1.7 - Owner: https://github.com/fwerner
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9ae9798f43706fff1d23047236ee386dc754d0f5 -
Trigger Event:
push
-
Statement type:
File details
Details for the file phantom_hv-0.1.7-py3-none-any.whl.
File metadata
- Download URL: phantom_hv-0.1.7-py3-none-any.whl
- Upload date:
- Size: 117.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
da260e410d0ad99c9f6c86420c7bbea355a59eb6d7d92c30b24ed0a92e51967a
|
|
| MD5 |
bf050ccd9af3b35978a64dbd30b5e6b6
|
|
| BLAKE2b-256 |
93cb370516715c40c4142dd5c721e36ccaf68612ddf6294c2d39c2d4d5ef9e18
|
Provenance
The following attestation bundles were made for phantom_hv-0.1.7-py3-none-any.whl:
Publisher:
publish.yml on fwerner/phantom-hv
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
phantom_hv-0.1.7-py3-none-any.whl -
Subject digest:
da260e410d0ad99c9f6c86420c7bbea355a59eb6d7d92c30b24ed0a92e51967a - Sigstore transparency entry: 187738198
- Sigstore integration time:
-
Permalink:
fwerner/phantom-hv@9ae9798f43706fff1d23047236ee386dc754d0f5 -
Branch / Tag:
refs/tags/v0.1.7 - Owner: https://github.com/fwerner
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9ae9798f43706fff1d23047236ee386dc754d0f5 -
Trigger Event:
push
-
Statement type: