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

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

0.19.0

Date: 25.03.2018

  • command/element etc:
    • retrieve information about commands from MAD-X defined_commands and store in Command instances.

    • use Command to improve command string generation and type-checks in util.mad_command (#9)

    • quote filename parameters when composing command string

    • use deferred expressions (:=) whenever passing strings to non-string parameters (#11)

    • subclass elements, beam from Command

    • support attribute access for table/mappings/commands/elements/beams etc

    • allow case-insensitive access

    • overload index-access in tables to retrieve rows

    • implement Element.__delitem__ by setting value to default

    • return name for global elements too

    • add Madx.base_types data variable that yields the base elements

    • add Element.parent/base_type attributes

    • more concise string representations

    • strip -Proxy suffix from class names

    • apply user defined row/column selections even when no output file is specified

  • installation:
    • automatically use -lquadmath

    • add --static flag for setup script, use --shared by default

    • no more need to link against PTC shared object separately

    • finally provide some binary wheels for py 3.5 and 3.6 (#32)

  • raise cython language_level to 3

0.18.2

Date: 05.12.2017

  • fix order of weight command in Madx.match

0.18.1

Date: 30.11.2017

  • fix some inconsistencies regarding the mixture of unicode and byte strings on python2 (NOTE: still expected to be broken!)

  • provide copyright notice as unicode

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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.6m Windows x86-64

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

Uploaded CPython 3.6m Windows x86

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

Uploaded CPython 3.5m Windows x86-64

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

Uploaded CPython 3.5m Windows x86

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

Uploaded CPython 3.4m Windows x86-64

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

Uploaded CPython 3.4m Windows x86

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

Uploaded CPython 3.3 Windows x86-64

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

Uploaded CPython 3.3 Windows x86

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

Uploaded CPython 2.7 Windows x86-64

cpymad-0.19.0-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