You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/physics/boundary.jl
+10-6Lines changed: 10 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -309,8 +309,10 @@ function x_points(x_points::IMAS.IDSvector{<:IMAS.pulse_schedule__position_contr
309
309
x_points0 = Tuple{T,T}[]
310
310
for x_point in x_points
311
311
Rx =get_time_array(x_point.r, :reference, time0)
312
-
Zx =get_time_array(x_point.z, :reference, time0)
313
-
push!(x_points0, (Rx, Zx))
312
+
if Rx >0.0# discard NaN and points with Rx==0
313
+
Zx =get_time_array(x_point.z, :reference, time0)
314
+
push!(x_points0, (Rx, Zx))
315
+
end
314
316
end
315
317
return x_points0
316
318
end
@@ -325,10 +327,12 @@ Beturns vector with tuples of R,Z coordinates of x-points in pulse_schedule at t
325
327
"""
326
328
functionstrike_points(strike_points::IMAS.IDSvector{<:IMAS.pulse_schedule__position_control__strike_point{T}}; time0::Float64=global_time(strike_points)) where {T<:Real}
0 commit comments