Skip to content

python-accelerator-middle-layer/accml_lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

accml_lib: Particle accelerator middle layer: library part

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.

Additional Documentation

🚀 Installation and Running Instructions

1. Clone the Repository

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 --recursive

3. Install the Package

Please 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

3.1 Installing only accml_lib for an EPICS facility

For an EPICS facility install

python3 -m pip install -e \
      ./[bluesky-epics,pyat-simulator]

3.1 Installing only accml_lib for a TANGO facility

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]

4. Run the Virtual Accelerator (Test bench) --EPICS VERSION

apptainer run oras://registry.hzdr.de/digital-twins-for-accelerators/containers/pyat-softioc-digital-twin:v0-1-2-bessy.2475331

Keep this terminal running — it simulates a virtual accelerator backend.

5. Run the pyAML Client (example)

cd examples/tune
python3 tune_response_measurement.py

4.1 Run the Virtual Accelerator (Test bench) --TANGO VERSION

4.1.1 Assuming mysql is runnig. or run below my sql container

where is mysql container
apptainer run oras://registry.hzdr.de/digital-twins-for-accelerators/containers/pyat-tango-digital-twin:v0-1-0.2554955

Keep this terminal running — it simulates a virtual accelerator backend.

5.1 Run the pyAML Client (example)

cd examples/tune

Comment 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 setup

Now you can execute on the command line:

execute:

python3 tune_response_measurement.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages