We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e65cdb3 commit 86810cdCopy full SHA for 86810cd
1 file changed
torax/_src/output_tools/imas.py
@@ -70,6 +70,7 @@ def torax_state_to_imas_equilibrium(
70
eq.profiles_1d.triangularity_upper = geometry.delta_upper_face
71
eq.profiles_1d.triangularity_lower = geometry.delta_lower_face
72
eq.profiles_1d.elongation = geometry.elongation_face
73
+ # only output z_magnetic_axis if available
74
try:
75
eq.global_quantities.magnetic_axis.z = geometry.z_magnetic_axis()
76
except ValueError as e:
0 commit comments