pymadng
Python interface to MAD-NG running as subprocess
Install using below, see The Python Package Index (PyPi);
pip install pymadng
Familiarising yourself with pymadng
First, we recommend familiarising yourself with MAD-NG, documentation can be found here.
Then reading through the Low-Level Example Explained on the pymadng documentation should be sufficient (alongside knowledge of MAD-NG), assuming you are not planning to use any "syntactic sugar". If you plan to use the available pythonic looking code, there are plenty of examples to look at.
In the documentation, FODO Examples Explained, is a chapter that goes into detail on what is happening on each line of the FODO example, while LHC Example gives an example of loading the LHC and how to grab intermediate results from a match.
The only other example that may be of use is the ps-twiss example. This is an extremely simple example, extending the FODO example to perform a twiss on the PS sequence. If anything does not seem fully explained, initially check the API Reference and/or the MAD-NG Documentation, then feel free to open an issue so improvements can be made.
Documentation
Documentation, including explanation of a couple of examples and the limitations of the API can be found here.
The API reference is also included in this documentation. You can also compile to documentation yourself by cloning the repository and running make html in the docs folder.
Getting the examples working
You can run the example with python3 EXAMPLE_NAME.py
Metadata
Release files for pymadng 0.4.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pymadng-0.4.3.tar.gz | 9.9 MB | Without provenance | Details for pymadng-0.4.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pymadng-0.4.3-py3-none-any.whl | Python 3 | none | any | Details for pymadng-0.4.3-py3-none-any.whl |
Total release size: 19.2 MB
Release files / pymadng-0.4.3.tar.gz
| Download URL | pymadng-0.4.3.tar.gz |
|---|---|
| Size | 9.9 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a3aa86c50f314ae78919651755260f46d71937248f2b059010c597a6cc73fc37
|
|
BLAKE2b-256 checksum How to use checksums |
b92e667bc064b485a8257fb1f83697759f86df0237aced9ab9eb76e7ddc46687
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Release files / pymadng-0.4.3-py3-none-any.whl
| Download URL | pymadng-0.4.3-py3-none-any.whl |
|---|---|
| Size | 9.3 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e4ed509613b1883c70621cc9f3d3cec57de76932f5a626e4719ad7458cba10c9
|
|
BLAKE2b-256 checksum How to use checksums |
2364c4b3da2d3d27acb2e6b2f7039a4907a1732d05150b6b2732d3602affcc8e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Security for pymadng 0.4.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.