Cython binding to MAD-X
Project description
cpymad is a Cython binding to MAD-X for giving full control and access to a MAD-X interpreter within the python environment.
This version of cpymad should be built against MAD-X 5.04.02. It can be installed on linux, Windows and Mac (but I can’t offer much help for Mac). Python 3 is recommended but not (yet) required.
Links
License
The cpymad source code itself is under free license.
However, the MAD-X software package and henceforth all binary cpymad package distributions are NOT FREE.
For more details, see COPYING.rst and the MAD-X license.
Reporting issues
cpymad is NOT maintained by CERN members and links against an unofficial build of MAD-X that is not supported by CERN, i.e. this binary may have problems that the official binary does not have and vice versa.
If you have a problem with a sequence file, first try to check if that problem remains when using the MAD-X command line client distributed by CERN, then:
Report the issue to CERN only if it can be reproduced with their official command line client.
Report the issue here only if it can not be reproduced with their official command line client.
For issues regarding the cpymad code itself or usage information, I’m happy to answer. Please keep it precise, specific, and concise and provide all the necessary information.
Changelog
1.0.8
Date: 18.10.2018
add Table.dframe() method to return pandas dataframe (provisional API)
return success status from Madx.input (MAD-X errorflag)
update install instructions to account for symbol visibility
fix MAD-X crash on errors due to interposition of error by libc (linux)
automatically update documentation from travis
add quit method to shutdown the interpreter and wait for the process
fix file deletion in case of errors within temp_filename context
make Madx usable as context manager
use the correct line continuation in .bat example
fix manylinux build error: not creating libmadx.c
fix “Permission denied” error when having to clone MAD-X etc
fix incorrect ABI in the -cp27mu- wheel
allow specifying MAD-X/cpymad source tarballs for manylinux build
rework usage of data volumes in manylinux container: readonly cpymad folder
automatically build and upload manylinux releases from travis!
fix rare race-condition in stream reader -> delayed output
replace some magic numbers with human readable names
use coverage combine instead of custom path hack before uploading coverage data
move cpymad package to unimportable subdirectory
update to MAD-X 5.04.02
1.0.7
Date: 19.09.2018
fix io.UnsupportedOperation on python2 when sys.stdout is not a file
increase minrpc dependency to better comply with redirected stdouts
fix DeprecationWarning due to not importing ABCs from collections.abc
improvements in test suite and automatic style checks
1.0.6
Date: 28.08.2018
remove unused error_log from Madx
support passing arbitrary callables to Madx(stdout=...)
support passing non-file IOBase objects as stdout
default to sys.stdout
can pass almost arbitrary MAD-X scripts to input, including comments/multiline commands
Older versions
The full changelog is available online in CHANGES.rst.
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 cpymad-1.0.8-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9820bb5e13425017771c77ebd5904cca2fd60fa529737b53659bf32f270e9c82 |
|
MD5 | 12d5d8c4253cc095de397ebd56c345d9 |
|
BLAKE2b-256 | 93fff5cd1f0925b7599084630de784652d11a8616f1a53d22de702f72ad4772d |
Hashes for cpymad-1.0.8-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cefddb0654f232e69ecee7f447ecd18ddfe8335884d950ea1de5560130ceabf9 |
|
MD5 | 464692970236b8071083100df7af452a |
|
BLAKE2b-256 | 9ad75cc27dbfba0fe94efae34a082252b7b05d0f4eddb7c61820a4467d2cd25d |
Hashes for cpymad-1.0.8-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29593e49d34c42105deb2806c7364c40ebd940080985f7bffb05ef086200e1b9 |
|
MD5 | 31b4acf5289966a011747f6f1e7c465a |
|
BLAKE2b-256 | 1b7be6551db9829a2db8e0531a5570e03438c8ff5e31aacffa5414e8865e4424 |
Hashes for cpymad-1.0.8-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f547d703bc0fbba0c41058d2f0be159f8c86490393e8b5ca5616a2c1f90a25f |
|
MD5 | e87b8f69784124f1944ff166b260a49e |
|
BLAKE2b-256 | 8d79cfc37866fe79cc95a868def5af73ac2752c43fb2f8dfd071183b3db81d1b |
Hashes for cpymad-1.0.8-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08677743b6644a3495b31978d1a053d1b42d48546f62c3cf5d231b2b67f504af |
|
MD5 | 7d257384f0e3f37743da7e677eec4d02 |
|
BLAKE2b-256 | 78f69b5e934319a7d5bc5ddecbfc81134ae4664bb4830a87abc2188b750812c0 |
Hashes for cpymad-1.0.8-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b11486d5af432ad20f484ce510a0d4705847bbb40ccc65f66eaaec6e29df9bef |
|
MD5 | e2141087690fcf1a0d7d796b696694d2 |
|
BLAKE2b-256 | 4dbb091081c51b5ee52639303697bb1bc3ec600ce2771cb573cf8b039b5a16cf |
Hashes for cpymad-1.0.8-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96c88a34fe67624439fd64097f72ed372be63f24f3f823daa8e08db78c80f268 |
|
MD5 | f7d0ad1db35c328a559e26a120a45b3d |
|
BLAKE2b-256 | fcbb3137f9b158f1c41abda18a3f4d7c611ae280f645ba83b9a30dc93e2c1814 |
Hashes for cpymad-1.0.8-cp35-cp35m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bce924c56db9d89c72089339182e9ab620272478072e3909beffd9f34b4727bc |
|
MD5 | 059e70f7814f87992cbebc28cf317b7f |
|
BLAKE2b-256 | 7fecea0b9e8210568620d02f6d7e93f544ff8ed550a7a7ca34a13d4f3888e20f |
Hashes for cpymad-1.0.8-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec0cbe6b26bb08e7c84a1a6a47e9fd3a5eeb59c45c2345c6e957e2407648957e |
|
MD5 | d269dab8882ce210290d9e85467dcdb6 |
|
BLAKE2b-256 | 5676336c48c56fb99241e51506b8b6dc80dbe685a02fb57f203585ace9b19f9d |
Hashes for cpymad-1.0.8-cp34-cp34m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4440a38f578aaf696aa533c3e99705905aa572c5ec9d21d45cc2b4a7ff9d6f8d |
|
MD5 | 2dd01ce9c094edf3d6f6209f842417e2 |
|
BLAKE2b-256 | 45cc990acda2c2db33495de60043e5d5dceefd06ec3bbcb7afcff8c4d9803662 |
Hashes for cpymad-1.0.8-cp34-cp34m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77572e1f2a64b41156a7cf8d0f14637f0be55b3dc6ec8011f8ecc43a17163346 |
|
MD5 | 9831ba2b82d9889d3a5b0ea965514836 |
|
BLAKE2b-256 | f49936494f543c574ff5a6534ffc691bfd0a0825126a9402ea2668d15ecb3257 |
Hashes for cpymad-1.0.8-cp34-cp34m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c51166768cb96319a2a24b2042d26c466365c59a9eeed19e32a91470b7bce798 |
|
MD5 | 15d99ee02f0ce7c5c22b3fde9dbfe4a3 |
|
BLAKE2b-256 | 222f740b87553093afbdb7bccefcfc951c66e91a8047577727f0c74837831e1d |
Hashes for cpymad-1.0.8-cp33-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 614c860763c83d5457a73b5b88e8d0abf6fedc3668c110c71328c6854496c786 |
|
MD5 | 86e630c656c040ece7b1868004309fda |
|
BLAKE2b-256 | fbcd2818144508d0d32d6d0a91cecf52a48cc6cf9d3d6c75dbb8227906d69c6f |
Hashes for cpymad-1.0.8-cp33-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a3475e4f862cc25714ceeae804cd9efa00181a2f361324f1b7418bffbc2f7f7 |
|
MD5 | def4504c5f583d1756aba7d0d460641a |
|
BLAKE2b-256 | e29a2f49ed5b3c3fd35f939302a8b2791a3afcfe0210b6b94e3c5a45aaa81bb7 |
Hashes for cpymad-1.0.8-cp27-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ea26a037d7d17546295b396ebe326a28e7874a54a651a9a0b3a93f4eff09b9f |
|
MD5 | 87ad4b538c2010f329cdd271e2724ebf |
|
BLAKE2b-256 | fdb2d6e7763a883a61fbd6e6ca6a1ba2a72836829372456e034e71d29caa7d28 |
Hashes for cpymad-1.0.8-cp27-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0de44e98c1160f96b70397704bb62260556baec5253b0c1a5801539553ce7b8a |
|
MD5 | 53256754d2d76a91e4229733c19b8b07 |
|
BLAKE2b-256 | 86eae78ba0ddf6b734852cbbca99057261e01a54c979352fffc1937b9ff42bcf |
Hashes for cpymad-1.0.8-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45d6f9b1b11e5032537389b6b4842052c68ed3e058940bac0c06314cdd78613a |
|
MD5 | 470b03641f7390d57d119841b80930ce |
|
BLAKE2b-256 | 6e0d89745799e9659f9eb6189c00f6265bc2da9dea6e14207b44a09960438b6e |
Hashes for cpymad-1.0.8-cp27-cp27m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e65b23153184930bad8a2c95b3a609a292f8e6c9bec97b7c5ffd08ec6f25e3b3 |
|
MD5 | 46fb040778428ecc30aacf3526ac639f |
|
BLAKE2b-256 | 8d2db1d20afa7a63be4f5fd2372298d0d6c4e631eddece74996838ac3eabafe1 |