Cpymad

Latest version: v1.16.3

Safety actively analyzes 682457 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 8 of 30

17.03.2014

- raise exception and don't hang up anymore, if libmadx process crashes
- on python>=3.4, close handles in remote process properly
- let every 'Madx' instance have an independent copy of the madx library.
this makes the madx module much more useful. previously, this was only
true for instances of 'cpymad.model'.
- restrict to only one cython module that links to libmadx. (allows static
linking which is advantageous on windows!)
- use YAML model files instead of JSON
- make 'madx' a submodule of 'cpymad'
- fix test exit status

16.11.2017

- if no table columns are selected, show all by default
- need setuptools>=18.0
- thread-support:
- release GIL during ``input()``
- can specify a lock for minrpc

16.10.2016

- Update official support to ``MAD-X 5.02.12``

16.08.2019

- fix bug in Madx.chdir with paths including uppercase letters

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

16.04.2018

First pre-release for 1.0.0 with several backward incompatibilities.

- the Madx methods have been simplified to be only thin wrappers over the
corresponding MAD-X commands, not taking any extra responsibilities such as
automatically using sequences etc.
- rename ``Madx.tables/sequences`` to singular form
- disable passing dicts as range parameter for commands
- remove ``cpymad.util.is_match_param``.
- remove ``cpymad.libmadx.set_var`` routine. Always use ``input``!
- remove ``Madx.get_table`` method, use ``Madx.table.X`` instead
- rename ``Madx.evaluate`` to ``eval``
- remove ``Madx.set_value/set_expression/update_value``. Use assignment to
attributes of ``Madx.globals/command/element`` instead.
- rename ``util.mad_command`` -> ``format_command``
- only ignore ``None`` parameters when generating MAD-X commands. This allows
passing empty strings.
- remove ``cpymad.types.Expression``, replaced by new ``Parameter`` class, see
below.
- remove ``Madx.active_sequence``, use ``Madx.sequence()`` instead
- the ``at/l`` attributes are now kept as the values specified by the user
(relative to *refer* flag), and not overwritten anymore by the actual
position or length. Use ``.position`` and ``.length`` attributes to access
the node position/length instead!
- the ``name`` attribute is now the command/element name. The node name is
now available as ``node_name``.

Introduced a new API for accessing additional metadata about command
parameters:

- added a ``Command.cmdpar.X`` namespace that can be used to retrieve a
``Parameter`` instance with additional metadata about the command parameter.
- rigorously distinguish between MAD-X command parameters and other attributes
on elements/commands
- only command parameters can be accessed using the dict-like item access
syntax while other metadata can only be accessed via attribute access
- use the type information for improving the composition of MAD-X command
statements

Misc changes:

- add method ``Madx.sectortable2`` to access 2nd order sector map (as well as
related methods to ``Table``). Method name is subject to change!
- show implicit drifts with ``[0]`` again (the suffix is needed when matching
on implicit drifts)
- perfect kwargs forwarding
- expose ``occ_count/enable/base_name`` attributes on nodes

Page 8 of 30

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.