Skip to main content

Cython binding to MAD-X

Project description

Latest Version Python versions Supported platforms License: Source: CC0, Apache | Binary: Non-Free GitHub Actions Status Coverage DOI and Citation

cpymad is a Cython binding to MAD-X for giving full control and access to a MAD-X interpreter in python.

Note: Support for 32bit builds and python 2.7 has been removed in version 1.8.0.

Note: python 3.5 and manylinux1 have reached EOL. Support will be removed in a future release.

License

The cpymad source code itself is under free license, see COPYING.rst.

However, the MAD-X software package and henceforth all binary cpymad package distributions are NOT FREE., see MAD-X license.

CHANGELOG

The full changelog is available online in CHANGES.rst.

Reporting issues

Note that cpymad links against a custom build of MAD-X that may differ from the official CERN command line client. This binary may have problems that the official binary does not have and vice versa.

Therefore, before reporting issues, please make sure that you report to the correct recipient. 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 if it can be reproduced with the official MAD-X executable

  • to us if it can not be reproduced with the official MAD-X executable

Please keep the code in the bug report as minimal as possible, i.e. remove everything that can be removed such that the issue still occurs. This will save us some effort in handling the error report.

Please post the code inline, don’t upload zip files, or link to external sources, if possible.

Bug reports should describe the issue and contain a minimal python script similar to this:

from cpymad.madx import Madx
m = Madx()
m.call('commands.madx')

as well as the content of the commands.madx file.

You can create this file from your original python code with a minimal change that tells cpymad to write all MAD-X commands to a file:

m = Madx(command_log='commands.madx')
...

Now run this file with the official MAD-X command line client:

madx commands.madx

If madx reports the same error, check if there are any syntax errors in the commands.madx file. These may result from incorrect usage of cpymad, or bugs in cpymad.

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

cpymad-1.9.2.tar.gz (258.7 kB view hashes)

Uploaded Source

Built Distributions

cpymad-1.9.2-cp310-cp310-win_amd64.whl (5.2 MB view hashes)

Uploaded CPython 3.10 Windows x86-64

cpymad-1.9.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.5 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

cpymad-1.9.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (5.9 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARM64

cpymad-1.9.2-cp310-cp310-macosx_10_9_x86_64.whl (6.9 MB view hashes)

Uploaded CPython 3.10 macOS 10.9+ x86-64

cpymad-1.9.2-cp39-cp39-win_amd64.whl (5.2 MB view hashes)

Uploaded CPython 3.9 Windows x86-64

cpymad-1.9.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.5 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

cpymad-1.9.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (5.9 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

cpymad-1.9.2-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl (5.4 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.5+ x86-64

cpymad-1.9.2-cp39-cp39-macosx_10_9_x86_64.whl (6.9 MB view hashes)

Uploaded CPython 3.9 macOS 10.9+ x86-64

cpymad-1.9.2-cp38-cp38-win_amd64.whl (5.2 MB view hashes)

Uploaded CPython 3.8 Windows x86-64

cpymad-1.9.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.5 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

cpymad-1.9.2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (5.9 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ARM64

cpymad-1.9.2-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (5.4 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.5+ x86-64

cpymad-1.9.2-cp38-cp38-macosx_10_9_x86_64.whl (6.9 MB view hashes)

Uploaded CPython 3.8 macOS 10.9+ x86-64

cpymad-1.9.2-cp37-cp37m-win_amd64.whl (5.2 MB view hashes)

Uploaded CPython 3.7m Windows x86-64

cpymad-1.9.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.4 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

cpymad-1.9.2-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (5.9 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ ARM64

cpymad-1.9.2-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (5.4 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.5+ x86-64

cpymad-1.9.2-cp37-cp37m-macosx_10_9_x86_64.whl (6.9 MB view hashes)

Uploaded CPython 3.7m macOS 10.9+ x86-64

cpymad-1.9.2-cp36-cp36m-win_amd64.whl (5.2 MB view hashes)

Uploaded CPython 3.6m Windows x86-64

cpymad-1.9.2-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.4 MB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.17+ x86-64

cpymad-1.9.2-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (5.9 MB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.17+ ARM64

cpymad-1.9.2-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (5.4 MB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.5+ x86-64

cpymad-1.9.2-cp36-cp36m-macosx_10_9_x86_64.whl (6.9 MB view hashes)

Uploaded CPython 3.6m macOS 10.9+ x86-64

cpymad-1.9.2-cp35-cp35m-win_amd64.whl (5.2 MB view hashes)

Uploaded CPython 3.5m Windows x86-64

cpymad-1.9.2-cp35-cp35m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (5.4 MB view hashes)

Uploaded CPython 3.5m manylinux: glibc 2.5+ x86-64

cpymad-1.9.2-cp35-cp35m-macosx_10_6_x86_64.whl (6.9 MB view hashes)

Uploaded CPython 3.5m macOS 10.6+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page