PyTao is Python interface for Tao, which is based on the Bmad subroutine library for relativistic charged–particle and X-ray simulations in accelerators and storage rings.
Documentation for Bmad and Tao, as well as information for downloading the code if needed is given on the Bmad website.
Documentation |
---|
See the PyTao installation instructions for details. The preferred installation method is using conda:
conda install -c conda-forge pytao
Currently PyTao requires an installed Bmad distribution compiled with the ACC_ENABLE_SHARED="Y"
flag. This can be set in the bmad_dist/util/dist_prefs
file.
All platforms: |
Name | Downloads | Version | Platforms |
---|---|---|---|
Start a quick pytao session with IPython using:
$ pytao -init tao.init
------------------------------------------------------------
Initializing `tao` object with the following: -init tao.init
Type`tao.` and hit tab to see available commands.
------------------------------------------------------------
Python 3.12.0 | packaged by conda-forge | (main, Oct 3 2023, 08:36:57) [Clang 15.0.7 ]
Type 'copyright', 'credits' or 'license' for more information
IPython 8.18.1 -- An enhanced Interactive Python. Type '?' for help.
In [1]: tao
Out[1]: <pytao.interface_commands.Tao at 0x13c43d4f0>
Start pytao's GUI from the command-line with:
pytao-gui -init tao.init