slactrac.elegant_sim¶
-
slactrac.elegant_sim(beamline, dir=None, filename=None, **kwargs)[source]¶ Creates and runs a simulation in Elegant.
Parameters: dir : str
If none, simulated in a
tempfile.mkdtemptemporary directory.filename : str
If none, simulated with a
tempfile.mkstemptemporary file.Returns: (path, root, ext) : (str, str, str)
A tuple of the path of the simulation, the filename of the simulation, and the extension of the simulation