if ecrh:
data = [(pinjie, "Steady state auxiliary power", "MW"),
("pheat", "Power for heating only", "MW"),
("bootipf", "Bootstrap fraction", ""),
("faccd", "Auxiliary fraction", ""),
("facoh", "Inductive fraction", ""),
("powerht", "Plasma heating used for H factor", "MW"),
(pdivr, r"$\frac{P_{\mathrm{div}}}{R_{0}}$", "MW m$^{-1}$"),
(pdivnr, r"$\frac{P_{\mathrm{div}}}{<n> R_{0}}$",
r"$\times 10^{-20}$ MW m$^{2}$"),
(flh, r"$\frac{P_{\mathrm{div}}}{P_{\mathrm{LH}}}$", ""),
(hstar, "H* (non-rad. corr.)", "")]
Another data array for Ehst Lower Hybrid to be made in the current drive function and an else statement to catch future current drive options.
In GitLab by @asbrown on Oct 13, 2020, 15:00
In
plot_proc.pythe current drive function has options for ecrh and nbi, but ifiefrf=4(Ehst Lower Hybrid) is selected thenplot_proc.pywill fail as the arraydatais not created but later in the code data.append is used.Another data array for Ehst Lower Hybrid to be made in the current drive function and an else statement to catch future current drive options.