1. Introduction

This is the documentation for the implementation of a single-shot emittance measurement at FACET.

1.1. Prerequisites

1.1.1. Python 3

oneshot works with Python 3 and up, which should be installed via apt-get on *nix, Macports on Apple machines, or downloaded from https://www.python.org/downloads/.

1.1.2. NumPy and SciPy

oneshot depends on NumPy and SciPy to manipulate data.

NumPy has dependencies such as BLAS, LAPACK, and ATLAS, which makes downloading building form source is difficult. Installation via apt-get or Macports is highly recommended in order to handle these dependencies. It is possible to download or to build from source.

SciPy is similar to NumPy, and it is usually easiest to install the two at the same time - they have nearly identical install methods, to the point that at times it is difficult to tell the two apart. It is easiest to follow the install instructions.