Skip to content

Commit 43356bb

Browse files
committed
take j_phi output from core_profiles instead of geometry
1 parent 870f6f1 commit 43356bb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

torax/imas_tools/equilibrium.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ def geometry_to_IMAS(
214214
eq.profiles_1d.elongation = geometry.elongation_face
215215
eq.global_quantities.magnetic_axis.z = geometry._z_magnetic_axis
216216
eq.global_quantities.ip = -1 * geometry.Ip_profile_face[-1]
217-
eq.profiles_1d.j_phi = -1 * geometry.j_total_face
217+
eq.profiles_1d.j_phi = -1 * core_profiles.j_total_face
218218
eq.profiles_1d.volume = geometry.volume_face
219219
eq.profiles_1d.area = geometry.area_face
220220
eq.profiles_1d.rho_tor = np.sqrt(geometry.Phi_face / (np.pi * geometry.B_0))

0 commit comments

Comments
 (0)