mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-11-09 18:33:53 +01:00
Build and Deploy on local RHEL9 / build (push) Successful in 2m6s
Build on RHEL9 docker image / build (push) Successful in 3m58s
Build and Deploy on local RHEL8 / build (push) Successful in 5m10s
Build on RHEL8 docker image / build (push) Successful in 5m18s
Run Simulator Tests on local RHEL9 / build (push) Successful in 20m42s
Run Simulator Tests on local RHEL8 / build (push) Successful in 24m5s
* Histogram of activate image is updated
* Revert "Histogram of activate image is updated"
This reverts commit 2921627384.
* added color bar levels and spin boxes for each counter
* added color bar levels and spin boxes for each counter
* always disconnect histogram levels auto update
* disable cmin, cmax spinbpx if counter not checked
* dont show counter cmin cmax spin boxes if not in transceiver mode
* hide counters as well
* added tabs for each color range update
* changed color range mode from all to auto
* renamed widget in plot.ui
* updated code for all new spinboxes
* removed print stuff
* activated counters not needed
* always update colormap regardless if counter is shown or not
* disable all spinboxes per default
New Chip Test Board Gui using Python
Prototype for a new python based GUI for the Chip Test Board
Getting started
To install all dependencies build the package with python package build. This requires that you have build installed.
We recommend using a virtual conda environment.
git clone https://github.com/slsdetectorgroup/pyctbgui.git
cd pyctbgui
python -m build
pip install dist/pyctbgui-0.0.0-cp313-cp313-linux_x86_64.whl
./CtbGui
Note that the above package installs slsdet and aare. If you want to work on your local branch add the locally build python modules first to your PYTHONPATH.
Format Code
To check python code is formatted correctly according to style guides in pyproject.toml run (requires yapf to be installed.):
yapf --style pyproject.toml -r -d tests pyctbgui *.py
To format inplace using style in pyproject.toml run:
yapf --style pyproject.toml -m -r -i tests pyctbgui *.py
Run Tests:
The following command runs the unit tests (Requires pytestto be installed):
python -m pytest -v tests/unit
The following command runs end to end tests:
python -m pytest -v tests/gui
setup pre-commit hooks
pre-commit install