cooliscool / orbit-interpolator

An Elliptic orbit interpolator which uses (x,y,z,t) data as input and finds Keplerian orbital parameters

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RuntimeWarning: invalid value

cooliscool opened this issue · 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')