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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for accelerator-toolbox-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 139a797bdc95479f154b5f9bc16b52f5133d6af77a9944ebb4b01f4bfada5f4d |
|
MD5 | 9676ff16ebe65de7682702867c850d05 |
|
BLAKE2b-256 | 75e3d47c0bb9119717eb335837b99dd1b89cd94a38d252a380425755f3d25055 |
Hashes for accelerator_toolbox-0.0.2-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a1931ee9ff4b3dd1b14c92709413c83cff23fcadf694615f715a8854381c447 |
|
MD5 | 7f7cdcf7bf3c95bdda62edd13127abc0 |
|
BLAKE2b-256 | 883e75714890b67d989237909b69853790114f80ae6c5d1378e075f9b1e00c42 |
Hashes for accelerator_toolbox-0.0.2-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00292f4ae96040b8f31748cb98c5c18c6efb8479885388a1f87e402840fd08b1 |
|
MD5 | 2babd0b3ce7430075dcfad16cd70f6dd |
|
BLAKE2b-256 | 56bef97549eef9d782bb5551c94fe21b01a274ce4b67f07559bb8721eb17743b |
Hashes for accelerator_toolbox-0.0.2-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13a6d9853a2368140cfb4b87d91b0338aef20dbca113dcf50f4880cf0880f7a4 |
|
MD5 | 9031510f1a9fc60a93f817ca3e5dcbec |
|
BLAKE2b-256 | bc388ea83e7d7e9522db65fb4118c68ae9d5ada0851003baa147c417ba4fc88c |
Hashes for accelerator_toolbox-0.0.2-cp37-cp37m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 169ca8a7195970d37f0275a44e1caba9d464880be7aa38231340133e04cb688b |
|
MD5 | 137711619ad8ad087de58c21106a36dd |
|
BLAKE2b-256 | 90e5b9c2db4e7f4b634cf4caea3169faf8f3fb35e6688b9696d990532214b17a |
Hashes for accelerator_toolbox-0.0.2-cp37-cp37m-macosx_10_6_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0863718b5c68c2c2ef027bc096e23f21d49a7fb421cefd8914c011cf67bc8c73 |
|
MD5 | ed77374826d1e949cfbd46c0f393e895 |
|
BLAKE2b-256 | cd65e025a817844c4aa143edd692ab01fd2436ad7b8b4b8bc00dcf02b6c8eae2 |
Hashes for accelerator_toolbox-0.0.2-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4a7c8ca072a0f427a156abc9345d316acdfa68d9dadc80fef299ed83a1125d1 |
|
MD5 | 40cdd5a1a165e0c37af5e3848183c7cf |
|
BLAKE2b-256 | cf7c0ec024a56a050d80e19cf937a65f9b13be9c39400751433b1aeeba0dfa4a |
Hashes for accelerator_toolbox-0.0.2-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 292d235c794934c69eaa6f9f6347a94e0262b8deabf84892b865fd1ea0a8238c |
|
MD5 | 6696e0b65282092f0c12ee9fc0bfa579 |
|
BLAKE2b-256 | 12d8b184a2b42872b5b444cca6505e7750d9f19d466e2e401633f372e86613a5 |
Hashes for accelerator_toolbox-0.0.2-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2fcab26877654bc8ab78ca052b2817ada95f12481fdede7b70abab22292dc344 |
|
MD5 | f31428a108413b704d429e6b1f97865e |
|
BLAKE2b-256 | e4ab0eeab7a18625600ce2de7cc93d0272e9e765d0c1ee84f55730c93e8361e3 |
Hashes for accelerator_toolbox-0.0.2-cp36-cp36m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 235ecdc04c795f7a077a7c26237946cd460d9a1be5897dbd16cac2cd06477130 |
|
MD5 | b5fde6712adf5bcb4d75934373109c69 |
|
BLAKE2b-256 | 13bb25baf894a30530d9f5dcb5d2c04185e55e5d1224031ebecf18650767e1e3 |
Hashes for accelerator_toolbox-0.0.2-cp36-cp36m-macosx_10_6_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8c62ae546f6f9d2b9e300b2242fbda56290f80e39320ccbf2d743fd6d6902c4 |
|
MD5 | 01809ade0f4bb3938cddc11834d9abcd |
|
BLAKE2b-256 | 99c91298d7e8370c8d3801255acc28e73df1b0e33de33cf7a819da108f9a3f3c |
Hashes for accelerator_toolbox-0.0.2-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23fd43229994b1e5855359f0fc0d9f84700493c08731a6e6bc0cfa4395debaa0 |
|
MD5 | 0cc23fdf8f1594931d22d08654667e52 |
|
BLAKE2b-256 | a3d3b267b9a678f9f413d3965f237645412b8c7c4395cc238c6031777f07c4a5 |
Hashes for accelerator_toolbox-0.0.2-cp35-cp35m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 879e7f3b9f7e5ecd04ef6ab9cbc6895441bb95d99ed2e9bdbd86146a8f7211af |
|
MD5 | a6c7ab7454458ade2c05aaa0dda48457 |
|
BLAKE2b-256 | ad774ec5d831252b52b0b7415a7f16f11cc326d10bcf519aca30b3657f4d1bb0 |
Hashes for accelerator_toolbox-0.0.2-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a284dc2f286cf47e7e54dd5c2eeaf53adcb66f39b2654f188acc021eb1fabd0b |
|
MD5 | 056b82c290afd8ec6a093c835ed190bd |
|
BLAKE2b-256 | 0df42cc86ddc0f1447203d50527ce07254075dda1a67f492d10e4646287e7b91 |
Hashes for accelerator_toolbox-0.0.2-cp35-cp35m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0f59c10b4b264ccbff1253bd7e56e48f91e0390cd1ca96d3341b1731a4fc996 |
|
MD5 | 9a41484ee8b43e385772c23ffd9d302c |
|
BLAKE2b-256 | 245a5066878462f1e58dffe15fb756706dbc8b7d2f81f2619ee7ef165d13bf6c |
Hashes for accelerator_toolbox-0.0.2-cp35-cp35m-macosx_10_6_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 775ac6eca30b1b552a3087728b7d0f3b2d243a07737af8b65d9c808efbaa63f2 |
|
MD5 | c7db6beeaf4261c4eb1a2f4dd3d235ad |
|
BLAKE2b-256 | c80ea86fb0258ea1844ba6987b4af6c986b3826fc7e3ef12af0850944ac6a7cb |
Hashes for accelerator_toolbox-0.0.2-cp34-cp34m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cef70072449bf26666ffd8751e68af15520b08642b47b72862a3479f937dcd9a |
|
MD5 | 1f6c94e75d73251dc0d439f0a4c0db19 |
|
BLAKE2b-256 | a86978e230e543f21adc728dc791edac801bea4baa555bf34670936428f43042 |
Hashes for accelerator_toolbox-0.0.2-cp34-cp34m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b625b84fef38a779637c460eeffa4c531bd624e290a59ce063a2ad5db66e562 |
|
MD5 | fea585d27e1d1e97e559acd1029b26be |
|
BLAKE2b-256 | 4839195754a9f75c7c9e7df376d7d27c7447a229b027b5501b779087cddd04b9 |
Hashes for accelerator_toolbox-0.0.2-cp34-cp34m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4f9a432418fe413b9a87b73e56a67483a5231b668e21064673996b5b98157ac |
|
MD5 | f1f61461a1433dd810e24307ccb1956a |
|
BLAKE2b-256 | 13d9450601a932d24ce60cdc8fc7e99475abfcff7a91a6fbde3d1797c7643ea9 |
Hashes for accelerator_toolbox-0.0.2-cp34-cp34m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99ba1a01f05a1fef35d211bb843d72316aeac3cc95063d1bbb7272024f99c532 |
|
MD5 | 59b353cb61607ff8fea2a4d3a4d1b940 |
|
BLAKE2b-256 | f902c3a9e5c97987651f0020ced67ef90ac3f8371f7806a21bc61c9deadef8df |
Hashes for accelerator_toolbox-0.0.2-cp34-cp34m-macosx_10_6_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a20a3396cfefa58ccdf8a028baf3486874385173357a63b14ad75d30e235201 |
|
MD5 | 2ee5a9f27a84e24527524de6f0c0b0ac |
|
BLAKE2b-256 | 0b274e01ce6b435659242de735dd5eae63c9714102e68963d396cf19da01d74d |
Hashes for accelerator_toolbox-0.0.2-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1df44dad509c66fc813db9e915a57f572ec179bbcc0b49e6d32fa09e50f4d094 |
|
MD5 | 98cf4fb5d3f9a7b8f0449095e47d6202 |
|
BLAKE2b-256 | 1ec62d6ba6ac00876396ca36a5ca349ba0510a1dec43b56a5fde5bb85c75e904 |
Hashes for accelerator_toolbox-0.0.2-cp27-cp27mu-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1dfff75110e31578dd5d9f6dc73d03f260145dc7c4b8f7aa8016c5b19fc76651 |
|
MD5 | 7295b742a7b5bfecdab4830f6bec2e67 |
|
BLAKE2b-256 | 8008f0247875cd17334f3956eff721bb63cdee53c8a50673ac20bab25edd8a5a |
Hashes for accelerator_toolbox-0.0.2-cp27-cp27m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21fcbe4c5feb425283e8de4118b1d652485891364f74022ef1f3858467338d69 |
|
MD5 | 224aa1cb7a3a78c8058a3dd889141d66 |
|
BLAKE2b-256 | 78d602b2f186c4bf2d76e67d87068af9db5abdf90261995d8c5db0fdcbe51f18 |
Hashes for accelerator_toolbox-0.0.2-cp27-cp27m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50d2bb9897266a8176ff01283217bc8a388131f8140a60ae4e24e73dabe7c346 |
|
MD5 | 733b78c5d5c5d02226465d34f55d953a |
|
BLAKE2b-256 | 37e5f8d5b50c13174d384489cbac674cf547256695ee0380521ef6797974a11a |
Hashes for accelerator_toolbox-0.0.2-cp27-cp27m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65e0b25299b745a2ca7dddaca581d53260bb75e377691978ae05b5db6a25bf0d |
|
MD5 | a802f130025703a7bde5412d5f859954 |
|
BLAKE2b-256 | 0df519d5089ce6f46ab0cc31b30fadefb45811cce7d97124b7b4c0b2fa9a9e16 |
Hashes for accelerator_toolbox-0.0.2-cp27-cp27m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 497c5391a025d895feba18dc7f147a6cd6e9102e87eac346d37651f588c9a9be |
|
MD5 | 3f4e11dd61b6b7dfdb96b03c3c6ec25e |
|
BLAKE2b-256 | f312ad04c03f04aa379d71c081e34809dd1dd012df6f820041ca300b751fa67a |
Hashes for accelerator_toolbox-0.0.2-cp27-cp27m-macosx_10_6_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7aef6d5638bd15f6cee496ed855b30e6812644942b302b32c0b3edac1ab77fb |
|
MD5 | 19084152972853d2c3c591fe197fad0f |
|
BLAKE2b-256 | b7dba68dc126592e771535f39259ee2b821c6cc45944c2e5fb4c9039eb7e9f76 |