Skip to main content

TOM Toolkit Facility module for the European Southern Observatory telescopes

Project description

tom_eso

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.

This module is designed mainly to facilitate getting Target and Observation data from your TOM to the ESO P2 Tool (without having to re-enter it). Submitting observations is still expected to be done through the P2 Tool itself.

This facility is still in prototype stage and feature requests are welcome. Please let us know your use cases.

Installation

  1. Install the module into your TOM environment:

    pip install tom-eso
    

You'll want to update your pyproject.toml or requirements.txt file as well.

  1. In your project settings.py, add tom_eso to your INSTALLED_APPS setting:

    INSTALLED_APPS = [
        ...
        'tom_eso',
    ]
    
  2. Add tom_eso.eso.ESOFacility to the TOM_FACILITY_CLASSES in your TOM's settings.py:

     TOM_FACILITY_CLASSES = [
         'tom_observations.facilities.lco.LCOFacility',
         ...
         'tom_eso.eso.ESOFacility',
     ]
    
  3. Create the ESOProfile tables in your database:

    $ ./manage.py migrate
    

Configuration Options

After installation, each user will have an ESOProfile card in their TOM user profile where they can enter their ESO P2 Tool username and password and set the ESO environment to Demo, Production, or Production La Silla.

If a TOM admin wants to have a single default set of ESO credentials accessible by all of their TOM's users, they can include the following to thier 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'),
        },
    }

Note: The user specific credentials will always take precendence over these TOM-wide defaults.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tom_eso-0.2.2.tar.gz (34.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tom_eso-0.2.2-py3-none-any.whl (40.4 kB view details)

Uploaded Python 3

File details

Details for the file tom_eso-0.2.2.tar.gz.

File metadata

  • Download URL: tom_eso-0.2.2.tar.gz
  • Upload date:
  • Size: 34.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for tom_eso-0.2.2.tar.gz
Algorithm Hash digest
SHA256 8604e874c40a033d468b43796c004d8f3d3f17333767f7d677c92f61d25e3e91
MD5 f00056c401ca491af8a330e4dab264b7
BLAKE2b-256 8c9e34ee7cac8097897612dc72de91549a60066ffd0e591e9bf20ce2477b31d6

See more details on using hashes here.

Provenance

The following attestation bundles were made for tom_eso-0.2.2.tar.gz:

Publisher: pypi-release.yml on TOMToolkit/tom_eso

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tom_eso-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: tom_eso-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 40.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for tom_eso-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 12158fca4320914816a6886fa09bfc3620c731c0ac5f661f942b46d2e533adc7
MD5 bb0937d21ec86ddc61acd53843c74600
BLAKE2b-256 5d1c5d56e25ffcf70ec52e4cb3ab914c5686db864909b0355b2adb7dcd26d3eb

See more details on using hashes here.

Provenance

The following attestation bundles were made for tom_eso-0.2.2-py3-none-any.whl:

Publisher: pypi-release.yml on TOMToolkit/tom_eso

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page