An open API service indexing awesome lists of open source software.

https://github.com/loiccoyle/pyaccelerator

Toy particle accelerator building blocks
https://github.com/loiccoyle/pyaccelerator

accelerator-physics

Last synced: 5 months ago
JSON representation

Toy particle accelerator building blocks

Awesome Lists containing this project

README

          

# pyaccelerator

[![Tests](https://github.com/loiccoyle/accelerator/workflows/tests/badge.svg)](https://github.com/loiccoyle/accelerator/actions?query=workflow%3Atests)
[![Documentation Status](https://readthedocs.org/projects/pyaccelerator/badge/?version=latest)](https://pyaccelerator.readthedocs.io/en/latest/?badge=latest)
[![pypi](https://img.shields.io/pypi/v/pyaccelerator)](https://pypi.org/project/pyaccelerator/)

Python package to build simple toy accelerators.

# Dependencies:
* `numpy`
* `matplotlib`
* `scipy`

# Installation:

```sh
pip install pyaccelerator
```

It usualy a good idea to use a [virtual environment](https://docs.python.org/3/tutorial/venv.html). To create a virtual environment in the `venv` folder (assuming python3):
```sh
python -m venv venv
```

To activate the virtual environment:
```sh
source venv/bin/activate
```

Proceed with the installation to install in the virtual environment.

To deactivate the virtual environment:
```sh
deactivate
```

# Usage:
See the `notebooks` folder for some examples.