Skip to content

Commit 289b8a5

Browse files
committed
Fix formatting
1 parent d3f3793 commit 289b8a5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

imas/ids_convert.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1101,10 +1101,10 @@ 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
11091109
node[0].r = ts3.global_quantities.magnetic_axis.r
11101110
node[0].z = ts3.global_quantities.magnetic_axis.z

0 commit comments

Comments
 (0)