PyChop is a program to calculate the energy resolution of a time-of-flight (ToF) neutron spectrometer from the burst time of the instrument's moderator and the opening times of its choppers.
The code is based on CHOP
, a fortran program written by T. G. Perring,
and multirep
, a Matlab program by R. I. Bewley.
This is a port of the Mantid PyChop code to work without Mantid.
Further documentation is available on the Mantid webpage
A web version is accessible at https://mducle.github.io/pychop/unstable/
Optionally create and activate a venv
virtual environment to isolate PyChop
from your system packages
python -m venv pychop
source pychop/bin/activate
Clone and install this repository with pip, e.g.:
python -m pip install git+https://github.com/mducle/pychop.git
this installation method should ensure that all requisite dependencies are available.
Launch the PyChop
GUI via the installed project script
PyChop