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.
Tests
When a commit is pushed upstream, the tests are automatically run on the following continuous integration (CI) systems:
Changelog
1.1.0
Date: 16.02.2019
add AttrDict.update() method similar to regular dicts
add Table.row_names() query method
use row names as table index for pandas dataframe
add Madx.batch() context manager to collect commands before sending them to MAD-X in a single batch all at once (performance)
add a convenience parameter Madx(history=[]) to simplify capturing history
explicitly specify zip_safe=False for the cpymad package. This will work better for builds against shared MAD-X library
close CommandLog files when calling Madx.quit() (if they were opened by us)
Finally, this is the first release to automate the release process for windows wheels:
build windows wheels on appveyor
upload windows wheels to pypi on tags
test cpymad on windows using appveyor
1.0.11
Date: 18.01.2019
guard expr_vars against passing None etc
add elems parameter to normalize_range_name
1.0.10.post1
Date: 11.12.2018
build windows wheels with bdwgc 7.6.8 to mitigate problems on win10
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.1.0-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8bef28bf64d6a3367534552d355d0feb5e39c8da0005da7dfc3013d78050536 |
|
MD5 | 88310f1d44e5abb33596d3cdadc0c569 |
|
BLAKE2b-256 | b548f721de022722b65d9e633de7ddda950b47c175a3f610e85dc05dd3523011 |
Hashes for cpymad-1.1.0-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5febd1d399eada85be761dc25029d7e3f502babec45451f59f34d80c6160ddd |
|
MD5 | d873b2e28e6c72a9bfeb873337340404 |
|
BLAKE2b-256 | 589d2cf173489722ffba3fc7bd3bcfd0241d48e346462f3cd7448f77b42a8553 |
Hashes for cpymad-1.1.0-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | abf2247795d034015981245fe875eed5fa3badb312cc0577a9e815862583328d |
|
MD5 | 6aab53a70f49d058c59a13fbfd53f87e |
|
BLAKE2b-256 | 74c90211a98c68dcee4591f3e7d7af4a7d1d9daf77cfa513e32d3a49a7089e35 |
Hashes for cpymad-1.1.0-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41a0b48baeccfefe059506a0805c7c3115e97e9adbe3eb5ed65cfe6e65e2740e |
|
MD5 | ea277718676b6921a9962a358d47ac49 |
|
BLAKE2b-256 | 35cd860f7c7e1d2735177e0b0d4cd8e08c7bc0fd3660e37f0863312b0e2ec3ce |
Hashes for cpymad-1.1.0-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ff287117b39639af8b154f1e20b96622591dfd73ca3b05a0dc981d27b89dd2d |
|
MD5 | 4411a664f849bda62b2479ea3654ba94 |
|
BLAKE2b-256 | c910f266d0fe6cbe8f7b1ba01067d58a447f474befe6d8e61539678e434283f7 |
Hashes for cpymad-1.1.0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1b26d18d1eefcc5dac2ad930fc08a8a0ad32052ffd04e04eb69856b5d6225c3 |
|
MD5 | d587b73f3a65894ef503b4e99e452c6c |
|
BLAKE2b-256 | 734c79a8a1fa1c281fdc826a8539dd6a9ac3e68089912aa9e3fef388b2064b81 |
Hashes for cpymad-1.1.0-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6353b4ef9c89973290fcea5bc791b56c8556bb0ac9d67597e91a9d87d620c7ba |
|
MD5 | 551788e160063ae80b7c5ef3c00c0709 |
|
BLAKE2b-256 | c4d77cf17c793ff6c2d5426278c7901f7b858dcc4b3c8770e630948343045586 |
Hashes for cpymad-1.1.0-cp35-cp35m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0aae982163f67c3350d5e68cb8733ec4150e3d028972f699b1c0cee235a8825 |
|
MD5 | 459f5bebb1b58aa8a84fcb8e800b1583 |
|
BLAKE2b-256 | 81d5fc5ae337edfbf91696286b0bf879deb3f5ba5c09f6368dd9212a337891a0 |
Hashes for cpymad-1.1.0-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a0472529cbb6308c196a61d30ffb99b6477c6631200ad2cb97f8c7eefe7ba55 |
|
MD5 | fb443b42c650b8b6c4fdaddc7f6ba86d |
|
BLAKE2b-256 | 26af3f4603a545cddc4139fedd045d859a6d2009951d6fd798bf2b374b0beac2 |
Hashes for cpymad-1.1.0-cp34-cp34m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9499bd6d1e40ca12f3f03a90a1be6abb32231a9f8258f232e2a04ee9fa38f34c |
|
MD5 | f8840ea253dd38b9c3ed321e07059d4e |
|
BLAKE2b-256 | 8c6569b32513ed7ee06d6ffc6c24d715653aae1080ec3db7d01347bbf63ead8a |
Hashes for cpymad-1.1.0-cp34-cp34m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9eef9a6fa97cb3b81d6f1dbd175efbab1907920d4c5ad67a8730f771385e623 |
|
MD5 | e37795be945d745fe3101ecefaf1a139 |
|
BLAKE2b-256 | 5bdb231b2bdd5cc4f6a49b2a649af78b89e4a440d17eb55234a70ed71b0ca0e2 |
Hashes for cpymad-1.1.0-cp34-cp34m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5cac231c3394c0d48c86291dc885f6e29227eb71f02eec2ec5df4e0836e0d848 |
|
MD5 | 91d6c563fff09ca80b0a0f952415553c |
|
BLAKE2b-256 | d8491fb28cd1def34fea7d31120485b4d9cd5378e14690a528d8a6b356d863a5 |
Hashes for cpymad-1.1.0-cp33-cp33m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8273101b9b6d8511d76935409b372565ab39e4041d25b80362c1a0de234fab45 |
|
MD5 | c5db34ba14921cc5767ea549763fc788 |
|
BLAKE2b-256 | 5116709fb4b3e8cf480338ce1eba704a1656e2c6fb38d106e7404d02aa904a0e |
Hashes for cpymad-1.1.0-cp33-cp33m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20c98f7d294955debfb55c42ec46f273946b6c0de2b798b80186bf8415a49e83 |
|
MD5 | d3d1601ce4b869284971431fa5cfe466 |
|
BLAKE2b-256 | 9adac6b50e3fc3248cd43f9358f6c61614863ce35d23448212cd9eaeb510db6d |
Hashes for cpymad-1.1.0-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f506efd27090cfd21c751b52d47a160a306d827f9433ba632b9d2b04a9c7338a |
|
MD5 | fa1bdbb8e62c8756b23796a4f7538cca |
|
BLAKE2b-256 | 0d68780298286bbfded147dbe1d9ea9daf216dbe76472a4459f373a6505aaf1c |
Hashes for cpymad-1.1.0-cp27-cp27m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 108b7d5cff7706665762d51aff37ef7494ee222d4c0919836179091caf44907d |
|
MD5 | eb238931bdeccbb8e8fc453904f10eb7 |
|
BLAKE2b-256 | 20032a677e916f3b282ff83f5e4e93d4cafc28b2b589e1f0e3091c67af98a163 |
Hashes for cpymad-1.1.0-cp27-cp27m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55880d7a964413ad017367a608716be859ed9430cab2ccd9e5983395534dcb25 |
|
MD5 | 3ef3dbf3a939581d7fed6c46f3dd7ada |
|
BLAKE2b-256 | ba967d97d325c94faf44e243350e491dd1e9214a7abc89385eece3741763533f |
Hashes for cpymad-1.1.0-cp27-cp27m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41ab22811295af83d70f1d29fc04877ef241af6d43f4fba37ffe5b6113fb6156 |
|
MD5 | 9fe1b0db1c97b6967689342987069ea8 |
|
BLAKE2b-256 | ba3d34135a8c40fb1d66cc85d75dc4e9f3f9eb6bc0f65b20f5639bf07a9d870a |