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)