We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 804605a commit 0095602Copy full SHA for 0095602
1 file changed
disruption_py/machine/cmod/thomson.py
@@ -244,7 +244,9 @@ def _map_ts2tci(params: PhysicsMethodParams, nlnum):
244
psits = CmodThomsonDensityMeasure._efit_rz2psi(params, rts, zts, nets_core_t)
245
mtci = 101
246
ztci = -0.4 + 0.8 * np.arange(0, mtci) / (mtci - 1)
247
- rtci = rtci[nlnum] + np.zeros((1, mtci))
+ # There are 10 TCI channels like NL_01, NL_02, ..., NL_10
248
+ # nlnum is 1-indexed to match the channel numbering, but we need to convert it to 0-indexed for array indexing
249
+ rtci = rtci[nlnum-1] + np.zeros((1, mtci))
250
psitci = CmodThomsonDensityMeasure._efit_rz2psi(params, rtci, ztci, nets_core_t)
251
psia = interp1(psia_t, psia, nets_core_t)
252
psi_0 = interp1(psia_t, psi_0, nets_core_t)
0 commit comments