Describe the bug
This bug report is in two parts, the second part may be better spun-off into a separate feature request.
The dictionary key for holding the Lasair API key in the BROKERS section of the tom_setup/templates/tom_setup/settings.tmpl has the incorrect case (Lasair vs LASAIR) causing attempts to use the Lasair broker within TOM Toolkit to break (specifically attempts to use tom_alerts/brokers/lasair.LasairBroker.fetch_alerts())
Lasair-ZTF and Lasair-LSST (currently?) require separate accounts which have separate API keys; support for handling both flavors of broker and their separate API keys should be added, particularly as ZTF is funded to continue for the next 2 years.
To Reproduce
Steps to reproduce the behavior:
Start with a new version of tomtoolkit and run python ./manage.py tom_setup (or use make-tom/make-tom.sh)
Add Lasair API key to the api_key section of ['BROKERS']['Lasair'] in the settings.py and attempt to use the Lasair Query form
Fails with Requires a 'api_key' in settings.BROKERS['LASAIR']. Log in or create an account at https://lasair-ztf.lsst.ac.uk/ to acquire an API token.
Expected behavior
Queries should work. Support for querying both ZTF and LSST through Lasair is desirable.
Desktop (please complete the following information):
OS: Windows 11
Browser: Firefox
Version 130.0.1
Python Version: 3.10.11
TOM Toolkit Version: 2.19.6
Additional context
Add any other context about the problem here.
Describe the bug This bug report is in two parts, the second part may be better spun-off into a separate feature request.
BROKERS
section of the tom_setup/templates/tom_setup/settings.tmpl has the incorrect case (Lasair
vsLASAIR
) causing attempts to use the Lasair broker within TOM Toolkit to break (specifically attempts to usetom_alerts/brokers/lasair.LasairBroker.fetch_alerts()
)To Reproduce Steps to reproduce the behavior:
tomtoolkit
and runpython ./manage.py tom_setup
(or usemake-tom/make-tom.sh
)api_key
section of['BROKERS']['Lasair']
in thesettings.py
and attempt to use the Lasair Query formRequires a 'api_key' in settings.BROKERS['LASAIR']. Log in or create an account at https://lasair-ztf.lsst.ac.uk/ to acquire an API token.
Expected behavior Queries should work. Support for querying both ZTF and LSST through Lasair is desirable.
Desktop (please complete the following information):
Additional context Add any other context about the problem here.