Skip to main content

Cython binding to MAD-X

Project description

Latest Version License: CC0, Apache, Non-Free Python versions Test Status Coverage

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.01. 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.

License

The cpymad source code itself is under free license.

However, note that 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. See also: Reporting issues.

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. Just keep in mind to be precise, specific, concise and provide all the necessary information.

Changelog

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

1.0.5

Date: 16.08.2018

API: - rename Madx.call’s first parameter as in MAD-X - handle all USE parameters in Madx.use

setup: - provide manylinux wheels! - remove spurious dependency on pyyaml - finally get the real meaning of MADX_STATIC and BUILD_SHARED_LIBS - default to BUILD_SHARED_LIBS=OFF on all platforms - rework arguments for setup.py - make linking against X11 optional (requires unreleased MAD-X 5.04.02) - default to X11=OFF if building MAD-X - improve documentation

1.0.4.post1

Date: 24.07.2018

  • fix py2 syntax error in setup.py

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

cpymad-1.0.6.tar.gz (168.6 kB view hashes)

Uploaded Source

Built Distributions

cpymad-1.0.6-cp37-cp37m-win_amd64.whl (4.3 MB view hashes)

Uploaded CPython 3.7m Windows x86-64

cpymad-1.0.6-cp37-cp37m-win32.whl (3.8 MB view hashes)

Uploaded CPython 3.7m Windows x86

cpymad-1.0.6-cp37-cp37m-manylinux1_x86_64.whl (8.3 MB view hashes)

Uploaded CPython 3.7m

cpymad-1.0.6-cp36-cp36m-win_amd64.whl (4.3 MB view hashes)

Uploaded CPython 3.6m Windows x86-64

cpymad-1.0.6-cp36-cp36m-win32.whl (3.8 MB view hashes)

Uploaded CPython 3.6m Windows x86

cpymad-1.0.6-cp36-cp36m-manylinux1_x86_64.whl (8.3 MB view hashes)

Uploaded CPython 3.6m

cpymad-1.0.6-cp35-cp35m-win_amd64.whl (4.3 MB view hashes)

Uploaded CPython 3.5m Windows x86-64

cpymad-1.0.6-cp35-cp35m-win32.whl (3.8 MB view hashes)

Uploaded CPython 3.5m Windows x86

cpymad-1.0.6-cp35-cp35m-manylinux1_x86_64.whl (8.3 MB view hashes)

Uploaded CPython 3.5m

cpymad-1.0.6-cp34-cp34m-win_amd64.whl (4.3 MB view hashes)

Uploaded CPython 3.4m Windows x86-64

cpymad-1.0.6-cp34-cp34m-win32.whl (3.8 MB view hashes)

Uploaded CPython 3.4m Windows x86

cpymad-1.0.6-cp34-cp34m-manylinux1_x86_64.whl (8.3 MB view hashes)

Uploaded CPython 3.4m

cpymad-1.0.6-cp33-none-win_amd64.whl (4.3 MB view hashes)

Uploaded CPython 3.3 Windows x86-64

cpymad-1.0.6-cp33-none-win32.whl (3.8 MB view hashes)

Uploaded CPython 3.3 Windows x86

cpymad-1.0.6-cp27-none-win_amd64.whl (4.3 MB view hashes)

Uploaded CPython 2.7 Windows x86-64

cpymad-1.0.6-cp27-none-win32.whl (3.8 MB view hashes)

Uploaded CPython 2.7 Windows x86

cpymad-1.0.6-cp27-cp27m-manylinux1_x86_64.whl (8.2 MB view hashes)

Uploaded CPython 2.7m

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