Issues querying LSST SSOs through alerce_client

Hi ALeRCE folks, first off, thank you very much for adding support for Solar System Objects to ALeRCE; it’s very nice to have an additional broker option.
I’m following the notebooks/LSST/ALeRCE_LSST_SSO.ipynb example as a precursor to making these sort of queries in our TOM (FOMO) through the TOM Toolkit. I am running into issues when using the same example oid’s in the notebook through the alerce_client:

from alerce.core import Alerce
alerce = Alerce()

 lsst_query_parameters = 
{'classifiers': [],
 'format': 'json',
 'oid': '21163607367496779',
 'survey': 'lsst'}
alerce.query_object(**lsst_query_parameters)

This produces the following error:

File ~/venv/fomo_venv/lib/python3.12/site-packages/alerce/exceptions.py:23, in handle_error(response, response_format)
     20 code = response.status_code
     21 data = error
---> 23 raise codes.get(code, APIError)(
     24     message=message, code=code, data=data, response=response
     25 )

APIError: {'Error code': 500, 'Message': 'An error occurred', 'Data': {}}

Querying for ZTF objects seems to work, as does the TAP approach (as in the notebook)

1 Like

Hi Tim, apologies for the delay. At this time, Solar System objects in ALeRCE can only be queried through our TAP service, as in the notebook you mention. Both our python client and API do not support Solar System queries yet; that’s the reason why they can’t be queried in our web interface either. We’re working on that and will incorporate it in the future.

1 Like