Science Score: 67.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 5 DOI reference(s) in README
  • Academic publication links
    Links to: zenodo.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (14.6%) to scientific vocabulary
Last synced: 6 months ago · JSON representation ·

Repository

Basic Info
Statistics
  • Stars: 12
  • Watchers: 3
  • Forks: 1
  • Open Issues: 3
  • Releases: 2
Created about 2 years ago · Last pushed 11 months ago
Metadata Files
Readme License Citation

README.md

DOI License: GPL v3

Tutorial on Applying Reinforcement Learning to the Particle Accelerator ARES

You can view the tutorial notebook as HTML slides here.

Download the repository

Get the repository with Git

You will need to have Git previously installed in your computer. To check if you have it installed, open your terminal and type:

bash git --version

Git installation in macOS

bash brew update brew install git

Git installation in Linux

In Ubuntu/Debian

bash sudo apt install git

In CentOS

bash sudo yum install git

Downloading the repository

Once you have Git installed open your terminal, go to your desired directory, and type:

bash git clone https://github.com/RL4AA/rl-tutorial-ares-basic.git

Then enter the downloaded repository:

bash cd rl-tutorial-ares-basic

Get the repository with direct download

Open your terminal, go to your desired directory, and type:

bash wget https://github.com/RL4AA/rl-tutorial-ares-basic/archive/refs/heads/main.zip unzip main.zip cd rl-tutorial-ares-basic

Getting started

You need to install the dependencies before running the notebooks.

Install ffmpeg

Please also run these commands to install ffmpeg:

  • OS X: brew install ffmpeg
  • Ubuntu: sudo apt-get install ffmpeg

Using conda

If you don't have conda installed already and want to use conda for environment management, you can install the miniconda as described here.

  • Create a conda env from the provided env file conda env create -f environment.yml
  • Activate the environment with conda activate rl-icfa
  • Additional installation steps:

bash python -m jupyter contrib nbextension install --user python -m jupyter nbextension enable varInspector/main

  • After the tutorial you can remove your environment with conda remove -n rl-icfa --all

Using venv only

If you do not have conda installed:

Alternatively, you can create the virtual env with venv in the standard library

bash python -m venv rl-icfa

and activate the env with $ source /bin/activate (bash) or C:> /Scripts/activate.bat (Windows)

Then, install the packages with pip within the activated environment

bash python -m pip install -r requirements.txt

Finally, install the notebook extensions if you want to see them in slide mode:

bash python -m jupyter contrib nbextension install --user python -m jupyter nbextension enable varInspector/main

Now you should be able to run the provided notebook.

Running the tutorial

After installing the package

You can start the jupyter notebook in the terminal, and it will start a browser automatically

bash python -m jupyter notebook

Alternatively, you can use supported Editor to run the jupyter notebooks, e.g. with VS Code.


Citing the tutorial

This tutorial is uploaded to Zenodo. Please use the following DOI when citing this code:

bibtex @software{xu_2024_10777477, author = {Xu, Chenran and Santamaria Garcia, Andrea and Kaiser, Jan}, title = {Tutorial on Applying Reinforcement Learning to the Particle Accelerator {ARES}}, month = {03}, year = {2024}, publisher = {Zenodo}, version = {v1.0.1}, doi = {10.5281/zenodo.10777477}, url = {https://doi.org/10.5281/zenodo.10777477} }


Acknowledgement

This tutorial is developed by Jan Kaiser, Andrea Santamaria Garcia, and Chenran Xu.

The content is based on the tutorial given at the RL4AA'23 workshop: GitHub repository

Owner

  • Name: RL4AA
  • Login: RL4AA
  • Kind: organization

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
  - family-names: Xu
    given-names: Chenran
    affiliation: Karlsruhe Institute of Technology
    orcid: "https://orcid.org/0000-0002-5034-2207"
  - family-names: Santamaria Garcia
    given-names: Andrea
    affiliation: Karlsruhe Institute of Technology
    orcid: "https://orcid.org/0000-0002-7498-7640"
  - family-names: Kaiser
    given-names: Jan
    affiliation: Deutsches Elektronen-Synchrotron DESY
    orcid: "https://orcid.org/0000-0003-3445-0678"

title: "Tutorial on Applying Reinforcement Learning to the Particle Accelerator ARES"
date-released: 2024-03-25
type: software
version: 1.0.1
doi: 10.5281/zenodo.10777477
license: GPL-3.0
url: "https://github.com/RL4AA/rl-tutorial-ares-basic/"

GitHub Events

Total
  • Watch event: 1
  • Push event: 2
  • Fork event: 1
Last Year
  • Watch event: 1
  • Push event: 2
  • Fork event: 1

Dependencies

requirements.txt pypi
  • RISE *
  • cheetah-accelerator >=0.5.18
  • imageio ==2.4.1
  • ipywidgets *
  • jupyterlab *
  • matplotlib *
  • moviepy *
  • names *
  • opencv-python *
  • pyyaml *
  • seaborn *
  • stable-baselines3 ==1.6.0
.github/workflows/publish_website.yaml actions
  • actions/checkout v2 composite
  • actions/setup-python v2 composite
  • s0/git-publish-subdir-action develop composite
environment.yml conda
  • bzip2 1.0.8
  • ca-certificates 2023.12.12
  • libffi 3.4.4
  • ncurses 6.4
  • openssl 3.0.13
  • pip 23.3.1
  • python 3.10.13
  • readline 8.2
  • setuptools 68.2.2
  • sqlite 3.41.2
  • tk 8.6.12
  • wheel 0.41.2
  • xz 5.4.5
  • zlib 1.2.13