Skip to content

Commit 83ff945

Browse files
committed
Fix formatting
1 parent d3f3793 commit 83ff945

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

imas/ids_convert.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1101,14 +1101,14 @@ def _equilibrium_boundary_3to4(eq3: IDSToplevel, eq4: IDSToplevel, deepcopy: boo
11011101
node = ts4.contour_tree.node
11021102
node.resize(n_nodes)
11031103
# Magnetic axis (primary O-point)
1104-
axis_is_psi_minimum = (
1105-
# Note the sign flip for psi due to the COCOS change between DD3 and DD4!
1106-
-ts3.global_quantities.psi_axis < -ts3.global_quantities.psi_boundary
1107-
)
1104+
gq = ts3.global_quantities
1105+
# Note the sign flip for psi due to the COCOS change between DD3 and DD4!
1106+
axis_is_psi_minimum = -gq.psi_axis < -gq.psi_boundary
1107+
11081108
node[0].critical_type = 0 if axis_is_psi_minimum else 2
1109-
node[0].r = ts3.global_quantities.magnetic_axis.r
1110-
node[0].z = ts3.global_quantities.magnetic_axis.z
1111-
node[0].psi = -ts3.global_quantities.psi_axis # COCOS change
1109+
node[0].r = gq.magnetic_axis.r
1110+
node[0].z = gq.magnetic_axis.z
1111+
node[0].psi = -gq.psi_axis # COCOS change
11121112

11131113
# X-points
11141114
if n_nodes >= 2:

0 commit comments

Comments
 (0)