PyTao Bokeh "Single mode"¶
In [1]:
Copied!
from pytao import Tao
from pytao import Tao
In [2]:
Copied!
init_file = "$ACC_ROOT_DIR/bmad-doc/tao_examples/cbeta_cell/tao.init"
tao = Tao(init_file=init_file, plot="bokeh")
init_file = "$ACC_ROOT_DIR/bmad-doc/tao_examples/cbeta_cell/tao.init"
tao = Tao(init_file=init_file, plot="bokeh")
Show names for our quadrupoles¶
In [3]:
Copied!
_ = tao.update_plot_shapes("quadrupole", type_label="name", layout=True)
_ = tao.update_plot_shapes("quadrupole", type_label="name", layout=True)
Configure relevant settings¶
Show a "single mode"-style plot with variables¶
Please note that these interactive widgets will not display on https://bmad-sim.github.io/pytao documentation. These only work with a live Tao session.
In [5]:
Copied!
tao.plot("beta", vars=True, width=800, height=200, layout_height=75)
tao.plot("beta", vars=True, width=800, height=200, layout_height=75)
Query variable values programmatically¶
In [6]:
Copied!
tao.var("q[1]")["model_value"]
tao.var("q[1]")["model_value"]
Out[6]:
-20.931