cooliscool/orbit-interpolator

RuntimeWarning: invalid value

cooliscool opened this issue · 2 comments

causes the final output to be a [nan nan nan nan nan]

error1

Solved!
This happens when two points become the same out of the three selected by function.

Solved by skipping that case from iteration.

if i==j | j==k | k==i :
raise ValueError('Randomly chosen points happened to be same')