A Dash application to visualize the observables and parameters of a collider built and configured with Xsuite.
Project description
Collider Dashboard
A Dash application to visualize the observables and parameters of a collider built and configured with Xsuite.
Installation
The dashboard can be installed from PyPI with pip:
pip install collider-dashboard
This will install the required packages and build the application.
Usage
For personal usage, the simplest way to use the dashboard is to run the package as a development server from the command line, providing a few arguments:
python -m collider_dashboard --collider-path path_to_collider.json --port 8080 --force-reload --ignore-footprint --simplify --debug
--collider-path
, or-c
, sets the path to the collider configuration file. Default value to the path of a dummy collider used for testing.--port
, or-p
, sets the port on which the dashboard will be deployed. Default value to `8080``.--force-reload
, or-f
, sets a boolean indicating whether the collider dashboard data should be reloaded if already existing. Optional.--ignore-footprint
, or-i
, sets a boolean indicating whether the footprint should be ignored to gain computation time. Optional.--simplify
, or-s
, sets a boolean indicating whether the Twiss/Survey tables should be simplified (remove duplicates and entry/exit elements) to gain computation time. Recommended but optional.--debug
, or-d
, sets a boolean indicating whether the dashboard should be run in debug mode. Optional.
After computing some temporary variables (this may take a while the first time), this will deploy a local server and open the dashboard in a browser window.
Alternatively, one can import the dashboard as a module and use it in a custom script:
# my-awesome-dashboard.py
from collider_dashboard import build_app
app, server = build_app(path_to_collider.json, port=8080 force_reload=False, ignore_footprint=False, debug = False, simplify_tw=True)
The dashboard can then be deployed e.g. with gunicorn:
gunicorn my-awesome-dashboard:server -b :8080
Note that, as the dashboard deals with global variables, it is not thread-safe. It is therefore recommended to run it with a single worker (it's the case by default).
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 collider_dashboard-0.1.0.0.tar.gz
.
File metadata
- Download URL: collider_dashboard-0.1.0.0.tar.gz
- Upload date:
- Size: 3.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.8.10 Linux/5.15.0-88-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8f8fc78dd53cafc8b342b942dcf2ad1e7ca1c752aacec285287cb4d6d2fb695 |
|
MD5 | f0462733e8756bee47e94daebc47ded1 |
|
BLAKE2b-256 | 0ab8802d59848c441fbe44f62ae95f7f0a4271f9074394b6fe058f76168c8bba |
File details
Details for the file collider_dashboard-0.1.0.0-py3-none-any.whl
.
File metadata
- Download URL: collider_dashboard-0.1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.1 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.8.10 Linux/5.15.0-88-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36d3e992f7f317b2075580b8739159546ca805d11be97e493b0961c318248b09 |
|
MD5 | 896970d94a6800538a1914b8a9465d0c |
|
BLAKE2b-256 | 2f0fdf6f9f3c4dd43d1fca19d62940f86b937d276ff10ee1ff6688a2e6bc95d4 |