Skip to content
/ pychop Public

Python program to calculate energy resolution for time-of-flight neutron spectrometers.

License

Notifications You must be signed in to change notification settings

mducle/pychop

Repository files navigation

PyChop Stand-alone

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/

Installation

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.

Usage

Launch the PyChop GUI via the installed project script

PyChop