Skip to main content

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. If you haven't done it already, it is recommended to prebuild the Xsuite kernel to gain some computation time:

xsuite-prebuild

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

collider_dashboard-0.1.1.0.tar.gz (3.7 MB view details)

Uploaded Source

Built Distribution

collider_dashboard-0.1.1.0-py3-none-any.whl (4.1 MB view details)

Uploaded Python 3

File details

Details for the file collider_dashboard-0.1.1.0.tar.gz.

File metadata

  • Download URL: collider_dashboard-0.1.1.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

Hashes for collider_dashboard-0.1.1.0.tar.gz
Algorithm Hash digest
SHA256 6df85beb4a05c867b503ce2aafb62946f3ad29690d5cbcf1bf610aa35a393f75
MD5 31e3c3c48f8bd7269b2979ffbe1f67fe
BLAKE2b-256 79d4f99af893f5a974296b5d68556868f17f7c35b9eeb84be6a3bc3d91f70693

See more details on using hashes here.

File details

Details for the file collider_dashboard-0.1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for collider_dashboard-0.1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f083049f2a3d3f9dfe3eb9ba5a588d5001220923c813c42a79216b779d3f4892
MD5 5932ad0ca63826f14252adb72ee83176
BLAKE2b-256 629b047ad1fb3080fa6ba628b5a0af21f2f52c80eecafb4dada9d5fa0df630fc

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page