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
The returned arc_diameters from the strand2casx function can contain NaN values when the arc radius index for both the endpoints of an arc happen to be the highest index in the range of arc radius indices. In this situation, the computed arc radius for the arc can be slightly above the last index due to numerical error. Then in interpolating the radius index to a length, the interp1 function returns NaN values for these radii because they are outside the interpolation bounds and no extrapolation method has been defined.
Proposed solution is enable extrapolation in line 93:
This will eliminate the current source of NaN values, and small extrapolation outside of the radius index range should not produce inaccurate values for the arc radius.
The text was updated successfully, but these errors were encountered:
The returned
arc_diameters
from the strand2casx function can containNaN
values when the arc radius index for both the endpoints of an arc happen to be the highest index in the range of arc radius indices. In this situation, the computed arc radius for the arc can be slightly above the last index due to numerical error. Then in interpolating the radius index to a length, theinterp1
function returnsNaN
values for these radii because they are outside the interpolation bounds and no extrapolation method has been defined.Proposed solution is enable extrapolation in line 93:
This will eliminate the current source of
NaN
values, and small extrapolation outside of the radius index range should not produce inaccurate values for the arc radius.The text was updated successfully, but these errors were encountered: