Skip to main content

A python interface to MAD-NG running as subprocess

Reason this release was yanked:

Includes a pre release of MAD-NG 1.1.14 which has bugs.

Project description

PyMAD-NG

Python interface to MAD-NG running as a subprocess

PyPI version Documentation Status License DOI


🚀 Installation

Install via pip from PyPI:

pip install pymadng

🧠 Getting Started

Before diving into PyMAD-NG, we recommend you:

  1. Familiarise yourself with MAD-NG — understanding MAD-NG is essential.
  2. Read the Quick Start Guide to see how to control MAD-NG from Python.

Explore Key Examples

If anything seems unclear:


📚 Documentation

Full documentation and example breakdowns are hosted at: https://pymadng.readthedocs.io/en/latest/

To build locally:

git clone https://github.com/MethodicalAcceleratorDesign/MAD-NG.py.git
cd MAD-NG.py/docs
make html

🧪 Running Examples

Examples are stored in the examples/ folder. Run any script with:

python3 examples/ex-fodos.py

You can also batch-run everything using:

python3 runall.py

💡 Features

  • High-level Python interface to MAD-NG
  • Access to MAD-NG functions, sequences, optics, and tracking
  • Dynamic send() and recv() communication
  • Python-native handling of MAD tables and expressions
  • Optional integration with pandas and tfs-pandas

🤝 Contributing

We welcome contributions! See CONTRIBUTING.md or the Contributing Guide in the docs.

Bug reports, feature requests, and pull requests are encouraged.


📜 License

PyMAD-NG is licensed under the GNU General Public License v3.0.


🙌 Acknowledgements

Built on top of MAD-NG, developed at CERN. This interface aims to bring MAD's power to the Python ecosystem with minimal friction.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pymadng-0.9.4.tar.gz (10.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pymadng-0.9.4-py3-none-any.whl (9.9 MB view details)

Uploaded Python 3

File details

Details for the file pymadng-0.9.4.tar.gz.

File metadata

  • Download URL: pymadng-0.9.4.tar.gz
  • Upload date:
  • Size: 10.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pymadng-0.9.4.tar.gz
Algorithm Hash digest
SHA256 806a83b95917afcba90ca0753f6ff93305642da8f1df7a378f5b15234f6acc1a
MD5 3966dd2a9153ea35d723755c7dccf55f
BLAKE2b-256 f4e639cc2bdff4864a07763a14444679df7e5762490859a5a9e37de9df923e7b

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymadng-0.9.4.tar.gz:

Publisher: python-publish.yml on MethodicalAcceleratorDesign/MAD-NG.py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pymadng-0.9.4-py3-none-any.whl.

File metadata

  • Download URL: pymadng-0.9.4-py3-none-any.whl
  • Upload date:
  • Size: 9.9 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pymadng-0.9.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b7370ab5653274fc7c0091992b795484fed09d2bf8e05439b91ba2c4cb6c712c
MD5 3b230fd09620765652793ea8526959ad
BLAKE2b-256 a4afe6eacba156e07f5695c30c70d7c59df9ce5ffd549a4da9949a7ed4661e48

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymadng-0.9.4-py3-none-any.whl:

Publisher: python-publish.yml on MethodicalAcceleratorDesign/MAD-NG.py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page