Hi,
When running OD using Lamberts Kalman method xhat = np.mean(kep[:, I]) in kalman_lambert.kalman will result in IndexErrorbecause the distance units are in km. Changing the units to metres fixes the issue.
But currently, there is no error handling. This commit adds a simple try-except block for IndexError which returns a message requesting the user to change units to metres.
Use this command - python3 main.py -u m
Thanks!
Originally mentioned by @aryadas98 in #106 (comment)
Hi, When running OD using Lamberts Kalman method
xhat = np.mean(kep[:, I])
inkalman_lambert.kalman
will result inIndexError
because the distance units are in km. Changing the units to metres fixes the issue.But currently, there is no error handling. This commit adds a simple try-except block for IndexError which returns a message requesting the user to change units to metres. Use this command -
python3 main.py -u m
Thanks!
Originally mentioned by @aryadas98 in #106 (comment)
Edit: closed #190 to squash and shift branch