Skip to content

Latest commit

 

History

History
45 lines (34 loc) · 906 Bytes

File metadata and controls

45 lines (34 loc) · 906 Bytes

tom_cfht

Canada-France-Hawaii Telescope facility module for TOM Toolkit.

Pre-requisites

Installation

Install the module into your TOM environment:

pip install tom-cfht
  1. In your project settings.py, add tom_cfht to your INSTALLED_APPS setting:

    INSTALLED_APPS = [
        ...
        'tom_cfht',
    ]
  2. Add tom_cfht.cfht.CFHTFacility to the TOM_FACILITY_CLASSES in your TOM's settings.py:

     TOM_FACILITY_CLASSES = [
         'tom_observations.facilities.lco.LCOFacility',
         ...
         'tom_cfht.cfht.CFHTFacility',
     ]

Configuration

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'),
        },
    }