Coder Social home page Coder Social logo

cpymad's Introduction

cpymad

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. Support for python 3.5 has been removed in version 1.10.0.

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

Links

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.