Skip to main content

Accelerator Toolbox

Project description

pyAT is a Python interface to the pass methods defined in Accelerator Toolbox, implemented by compiling the C code used in the AT ‘integrators’ plus a Python extension.

It supports Python 2.7 and 3.3 to 3.6.

Installation preparation (Windows)

Download Microsoft Visual C++ Compiler for Python 2.7 (here), and use the Visual C++ Command Prompt of the correct architecture to build pyat.

For newer versions of Python you need the appropriate version of Visual C++.

Installation (all platforms)

All the binaries should be built when building the Python extension.

It is easiest to do this using a virtualenv, inside pyat:

  • virtualenv --no-site-packages venv
  • source venv/bin/activate  # or venv\Scripts\activate on Windows
  • pip install -r requirements.txt
  • python setup.py develop

Finally, you should be able to run the tests:

  • py.test test

Comparing results with Matlab

There is a second set of tests that require a Matlab licence and allows comparing results directly with a Matlab session. See test_matlab/README for information.

Debugging

Print statements in the C code will work once the integrators are recompiled. To force recompilation, remove the build directory:

  • rm -rf build

Any changes to .py files are automatically reinstalled in the build, but to ensure any changes to .c files are reinstalled rerun:

  • python setup.py develop

If you get strange behaviour even after running setup.py develop again, then running the following, inside pyat, should fix it:

  • rm -rf build
  • find at -name "*.pyc" -exec rm '{}' \;
  • find at -name "*.so" -exec rm '{}' \;
  • python setup.py develop

N.B. setup.py develop needs to be run with the same version of Python (and numpy) that you are using to run pyAT.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for accelerator-toolbox, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size accelerator_toolbox-0.0.2-cp27-cp27m-macosx_10_6_intel.whl (318.1 kB) File type Wheel Python version cp27 Upload date Hashes View hashes
Filename, size accelerator_toolbox-0.0.2-cp27-cp27m-manylinux1_i686.whl (588.4 kB) File type Wheel Python version cp27 Upload date Hashes View hashes
Filename, size accelerator_toolbox-0.0.2-cp27-cp27m-manylinux1_x86_64.whl (645.0 kB) File type Wheel Python version cp27 Upload date Hashes View hashes
Filename, size accelerator_toolbox-0.0.2-cp27-cp27mu-manylinux1_i686.whl (588.4 kB) File type Wheel Python version cp27 Upload date Hashes View hashes
Filename, size accelerator_toolbox-0.0.2-cp27-cp27mu-manylinux1_x86_64.whl (645.1 kB) File type Wheel Python version cp27 Upload date Hashes View hashes
Filename, size accelerator_toolbox-0.0.2-cp27-cp27m-win32.whl (226.9 kB) File type Wheel Python version cp27 Upload date Hashes View hashes
Filename, size accelerator_toolbox-0.0.2-cp27-cp27m-win_amd64.whl (248.8 kB) File type Wheel Python version cp27 Upload date Hashes View hashes
Filename, size accelerator_toolbox-0.0.2-cp34-cp34m-macosx_10_6_intel.whl (318.6 kB) File type Wheel Python version cp34 Upload date Hashes View hashes
Filename, size accelerator_toolbox-0.0.2-cp34-cp34m-manylinux1_i686.whl (586.2 kB) File type Wheel Python version cp34 Upload date Hashes View hashes
Filename, size accelerator_toolbox-0.0.2-cp34-cp34m-manylinux1_x86_64.whl (642.6 kB) File type Wheel Python version cp34 Upload date Hashes View hashes
Filename, size accelerator_toolbox-0.0.2-cp34-cp34m-win32.whl (225.9 kB) File type Wheel Python version cp34 Upload date Hashes View hashes
Filename, size accelerator_toolbox-0.0.2-cp34-cp34m-win_amd64.whl (247.9 kB) File type Wheel Python version cp34 Upload date Hashes View hashes
Filename, size accelerator_toolbox-0.0.2-cp35-cp35m-macosx_10_6_intel.whl (319.8 kB) File type Wheel Python version cp35 Upload date Hashes View hashes
Filename, size accelerator_toolbox-0.0.2-cp35-cp35m-manylinux1_i686.whl (589.7 kB) File type Wheel Python version cp35 Upload date Hashes View hashes
Filename, size accelerator_toolbox-0.0.2-cp35-cp35m-manylinux1_x86_64.whl (646.4 kB) File type Wheel Python version cp35 Upload date Hashes View hashes
Filename, size accelerator_toolbox-0.0.2-cp35-cp35m-win32.whl (307.1 kB) File type Wheel Python version cp35 Upload date Hashes View hashes
Filename, size accelerator_toolbox-0.0.2-cp35-cp35m-win_amd64.whl (348.7 kB) File type Wheel Python version cp35 Upload date Hashes View hashes
Filename, size accelerator_toolbox-0.0.2-cp36-cp36m-macosx_10_6_intel.whl (319.8 kB) File type Wheel Python version cp36 Upload date Hashes View hashes
Filename, size accelerator_toolbox-0.0.2-cp36-cp36m-manylinux1_i686.whl (589.7 kB) File type Wheel Python version cp36 Upload date Hashes View hashes
Filename, size accelerator_toolbox-0.0.2-cp36-cp36m-manylinux1_x86_64.whl (646.3 kB) File type Wheel Python version cp36 Upload date Hashes View hashes
Filename, size accelerator_toolbox-0.0.2-cp36-cp36m-win32.whl (307.2 kB) File type Wheel Python version cp36 Upload date Hashes View hashes
Filename, size accelerator_toolbox-0.0.2-cp36-cp36m-win_amd64.whl (348.8 kB) File type Wheel Python version cp36 Upload date Hashes View hashes
Filename, size accelerator_toolbox-0.0.2-cp37-cp37m-macosx_10_6_intel.whl (319.8 kB) File type Wheel Python version cp37 Upload date Hashes View hashes
Filename, size accelerator_toolbox-0.0.2-cp37-cp37m-manylinux1_i686.whl (589.7 kB) File type Wheel Python version cp37 Upload date Hashes View hashes
Filename, size accelerator_toolbox-0.0.2-cp37-cp37m-manylinux1_x86_64.whl (646.4 kB) File type Wheel Python version cp37 Upload date Hashes View hashes
Filename, size accelerator_toolbox-0.0.2-cp37-cp37m-win32.whl (307.2 kB) File type Wheel Python version cp37 Upload date Hashes View hashes
Filename, size accelerator_toolbox-0.0.2-cp37-cp37m-win_amd64.whl (348.8 kB) File type Wheel Python version cp37 Upload date Hashes View hashes
Filename, size accelerator-toolbox-0.0.2.tar.gz (100.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page