European Southern Obervatory Facility module for TOM Toolkit
NOTE: This TOM Toolkit facility module is in the prototype stage. Any type of feedback is greatly appreciated. Please feel free to create an Issue.
Install the module into your TOM environment:
pip install tom-eso-
In your project
settings.py, addtom_esoto yourINSTALLED_APPSsetting:INSTALLED_APPS = [ ... 'tom_eso', ]
-
Add
tom_eso.eso.ESOFacilityto theTOM_FACILITY_CLASSESin your TOM'ssettings.py:TOM_FACILITY_CLASSES = [ 'tom_observations.facilities.lco.LCOFacility', ... 'tom_eso.eso.ESOFacility', ]
Include the following settings inside the FACILITIES dictionary inside settings.py:
FACILITIES = {
...
# defaults set from ESO p2 API Tutorial
# https://www.eso.org/sci/observing/phase2/p2intro/Phase2API/api--python-programming-tutorial.html
# You should have your own credentials.
'ESO': {
'environment': os.getenv('ESO_ENVIRONMENT', 'demo'),
'username': os.getenv('ESO_USERNAME', '52052'),
'password': os.getenv('ESO_PASSWORD', 'tutorial'),
},
}