JPL Horizons Harvester fails to handle object with multiple id's #1178
Labels
bug
Something isn't working
Rubin SSSC
Solar System Science Collaboration Work
User
Issue Raised by a user
Describe the bug
Some solar system objects, mainly troublesome (periodic) comets, have multiple orbital element sets and/or multiple fragments and therefore have different SPK record numbers in the JPL Horizons system which have to be selected between. Attempting to add one of these objects through the TOM Toolkit's Catalog Search functionality results in nothing being added as the thrown
ValueError
is caught by anexcept
andself.catalog_data
is set to a blank dictionary.To Reproduce
Steps to reproduce the behavior:
This behavior can be seen more easily in the Python/Django shell:
Expected behavior
The elements main body (not fragment) with the epoch of elements closest to the current time should be returned
Desktop (please complete the following information):
Additional context
This problem is not OS/browser specific since it originates in the Horizons service itself e.g. with the original telnet service. I have code in NEOexchange that can catch and parse the table and requery on the specific SPK id that is closest in time.
The text was updated successfully, but these errors were encountered: