Canada-France-Hawaii Telescope facility module for TOM Toolkit.
Install the module into your TOM environment:
pip install tom-cfht-
In your project
settings.py, addtom_cfhtto yourINSTALLED_APPSsetting:INSTALLED_APPS = [ ... 'tom_cfht', ]
-
Add
tom_cfht.cfht.CFHTFacilityto theTOM_FACILITY_CLASSESin your TOM'ssettings.py:TOM_FACILITY_CLASSES = [ 'tom_observations.facilities.lco.LCOFacility', ... 'tom_cfht.cfht.CFHTFacility', ]
Include the following settings inside the FACILITIES dictionary inside settings.py:
FACILITIES = {
...
'CFHT': {
'CFHT_ACCESS_TOKEN': os.getenv('CFHT_ACCESS_TOKEN', 'please set CFHT_ACCESS_TOKEN'),
},
}