accml is a software stack designed to facilitate implementing tools
characterising (high) energy charged accelerator.
These tools typically address:
- characterising an accelerator
- commissioning of an accelerator
- forecasting the performance of an accelerator, which is currently under design.
For details of its concept see design.md.
git clone https://github.com/python-accelerator-middle-layer/accml.git
cd accml
### 2. Install Dependencies
```bash
git checkout dev/main
git submodule update --init --recursivePlease note: typically, especially as a user, you would install accml, which in turn will install accml_lib. So typically you want to look to https://github.com/python-accelerator-middle-layer/accml and install everything there
For an EPICS facility install
python3 -m pip install -e \
./[bluesky-epics,pyat-simulator]NB this installation is not yet tested. In case of experiencing trouble please drop us a line or share your experience in case of success.
python3 -m pip install -e \
./[bluesky-tango,pyat-simulator]apptainer run oras://registry.hzdr.de/digital-twins-for-accelerators/containers/pyat-softioc-digital-twin:v0-1-2-bessy.2475331Keep this terminal running — it simulates a virtual accelerator backend.
cd examples/tune
python3 tune_response_measurement.pywhere is mysql containerapptainer run oras://registry.hzdr.de/digital-twins-for-accelerators/containers/pyat-tango-digital-twin:v0-1-0.2554955Keep this terminal running — it simulates a virtual accelerator backend.
cd examples/tuneComment line 14 and uncomment line 15 in tune_response_measurement.py. Then it should look like this:
# from accml.custom.accml_lib.bessyii.setup import setup
from accml.custom.accml_lib.bessyii_on_tango.setup import setupNow you can execute on the command line:
execute:
python3 tune_response_measurement.py