Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

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. python 3.5 is deprecated and 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

This version

1.8.1

Download files

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

Files for cpymad, version 1.8.1
Filename, size File type Python version Upload date Hashes
Filename, size cpymad-1.8.1-cp35-cp35m-macosx_10_6_x86_64.whl (6.6 MB) File type Wheel Python version cp35 Upload date Hashes View
Filename, size cpymad-1.8.1-cp35-cp35m-manylinux1_x86_64.whl (5.2 MB) File type Wheel Python version cp35 Upload date Hashes View
Filename, size cpymad-1.8.1-cp35-cp35m-win_amd64.whl (5.0 MB) File type Wheel Python version cp35 Upload date Hashes View
Filename, size cpymad-1.8.1-cp36-cp36m-macosx_10_9_x86_64.whl (6.5 MB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size cpymad-1.8.1-cp36-cp36m-manylinux1_x86_64.whl (5.2 MB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size cpymad-1.8.1-cp36-cp36m-win_amd64.whl (5.0 MB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size cpymad-1.8.1-cp37-cp37m-macosx_10_9_x86_64.whl (6.5 MB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size cpymad-1.8.1-cp37-cp37m-manylinux1_x86_64.whl (5.2 MB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size cpymad-1.8.1-cp37-cp37m-win_amd64.whl (5.0 MB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size cpymad-1.8.1-cp38-cp38-macosx_10_9_x86_64.whl (6.5 MB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size cpymad-1.8.1-cp38-cp38-manylinux1_x86_64.whl (5.2 MB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size cpymad-1.8.1-cp38-cp38-win_amd64.whl (5.0 MB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size cpymad-1.8.1-cp39-cp39-macosx_10_9_x86_64.whl (6.5 MB) File type Wheel Python version cp39 Upload date Hashes View
Filename, size cpymad-1.8.1-cp39-cp39-manylinux1_x86_64.whl (5.2 MB) File type Wheel Python version cp39 Upload date Hashes View
Filename, size cpymad-1.8.1-cp39-cp39-win_amd64.whl (5.0 MB) File type Wheel Python version cp39 Upload date Hashes View
Filename, size cpymad-1.8.1.tar.gz (248.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page