Skip to content

Commit b0eb90f

Browse files
committed
change != None to is not None
1 parent 4945baf commit b0eb90f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

torax/torax_imastools/equilibrium.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ def geometry_to_IMAS(SimState: state.ToraxSimState, equilibrium_in: IDSToplevel
254254
eq.profiles_1d.q = face_to_cell(core_profiles.q_face)
255255

256256
#Optionally maps fixed quantities not evolved by TORAX and read directly from input equilibrium. Needed to couple with NICE inverse
257-
if equilibrium_in != None:
257+
if equilibrium_in is not None:
258258
eq.boundary.outline.r = equilibrium_in.time_slice[0].boundary.outline.r
259259
eq.boundary.outline.z = equilibrium_in.time_slice[0].boundary.outline.z
260260

0 commit comments

Comments
 (0)