MAD-NG into Python
LNO zoom meeting on MAD-NG into Python, 12/10/2022
News, Rogelio: welcoming two new LNO members, Filip Chudoba (connected) and Syrmatenia Lampaki; more in the next meeting that could be in presence.
MAD-NG in Python, Joshua Mark Gray, slides
------------------------------------------
Joshua works with Laurent on a python interface to MAD-NG, called PyMAD-NG. The code and the examples shown in this presentation are on https://github.com/MethodicalAcceleratorDesign/MADpy .
The work is still in a rather early (pre alpha) stage. Joshua illustrates the current syntax and features using three examples covering twiss and matching. The communication between Python and MAD-NG uses a temporary disk file, piping and shared memory. The output from MAD-NG goes straight back to the user terminal. The syntax on the python level was chosen to be very similar for MAD-X, MAD-NG and PyMAD (slide 7). Complex structures in MAD are difficult to replicate on the Python level and must be kept within MAD. The python interface works with references to MAD objects. Joshua is still looking for a convenient way to handle both named and unnamed variables in matching.
Riccardo proposes to already freeze at least one distribution version to allow users to get first experience and provide feedback.
Rogelio proposes that the PyMAD-NG install also installs MAD-NG.