A Partial-Wave/Amplitude Analysis Software Framework


The PyPWA Project
Thomas Jefferson National Accelerator Facility
Newport News, VA

Using Docker to download and run your PyPWA code

First you will need to pull (from cloud) the PyPWA container that contains all you need to run PyPWA.

-> docker pull markjonestx/pypwa:v3.4-all

Create a directory with all files you need to run your pypwa app (i.e , main_program, amplitudes, data, MC, waves,...): ../my_files

-> docker volume create -d .../my_files files_home

-> docker run -it -name pypwa --gpus all --mount source=files_home,target=/app markjonestx/pypwa:v3.4-all bash

(the --gpus all option is used when you run on gpus, it will take on all gpus you have available)

-> cd app

-> ls (you should see all your files and you will be inside that image directory)

you can then run your app files (i.e. demo_JPAC_fit.py - if you need to change the example notebook to py, we recommend using, i.e. "nbconvert"):

-> python3 demo_JPAC_fit.py

Using Docker-compose run your PyPWA code

Using docker-compose makes things more automatic you need a .yml file (example here )

then running in the directory of the docker-compose.yml file:

-> docker-compose up