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 (MAD-X source).

This version of cpymad should be built against MAD-X 5.04.01.

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.

License

White the cpymad source code itself is under free license, the MAD-X software package is NOT FREE. For more details, see COPYING.rst.

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

Date: 25.06.2018

Increase test coverage up to 96% (from 75), and fix a few minor bugs detected in the tests:

Command composition: - handle composite ranges (A/B) in - fix AttributeError when composing command with equality Constraint - fix incorrect output for STRING_ARRAY range parameters (MATCH) - fix passing Range objects as ranges

Misc: - fix table column names being bytes, return as unicode str - fix the sectortable2 method - add Madx.options property that allows to view the current set of options - remove unused helper method Sequence._parse_range - return the cloned element from Element.clone

1.0.1

Date: 22.06.2018

  • improve error message on missing command attributes

  • allow negative indices when accessing table rows

  • fix returning the correct table from twiss()/survey() if a non-default table is used

  • improve support for multi-line commands in input() (but still no comments!)

  • automatically add missing semicolons at the end of command strings

1.0.0

Date: 11.06.2018

Please see the comprehensive list of changes and backward incompatibilities mentioned in the prereleases!

In addition:

  • update to minrpc 0.0.7

  • the windows wheels are built using MAD-X 5.04.01

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.2.tar.gz (161.9 kB view hashes)

Uploaded Source

Built Distributions

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

Uploaded CPython 3.6m Windows x86-64

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

Uploaded CPython 3.6m Windows x86

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

Uploaded CPython 3.5m Windows x86-64

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

Uploaded CPython 3.5m Windows x86

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

Uploaded CPython 3.4m Windows x86-64

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

Uploaded CPython 3.4m Windows x86

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

Uploaded CPython 3.3 Windows x86-64

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

Uploaded CPython 3.3 Windows x86

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

Uploaded CPython 2.7 Windows x86-64

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

Uploaded CPython 2.7 Windows x86

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