Skip to main content

tom_education

Build Status Documentation Status

TOM Education is a plugin for the TOM Toolkit adding features intended for educational use. See the documentation for more information.

Features

  • Templated observation forms: Save the fields in the observation creation form as a template to make it easier to create multiple observations with similar parameters.

  • Timelapses: Create a timelapse of FITS data products for a target. Timelapses can be created as animated GIFs or MP4 or WebM videos.

  • Data gallery: View a gallery of thumbnails of FITS files which allows files to be selected and added to a data product group.

  • Data pipelines: Run a user-supplied data pipeline on a selection of files and save the outputs as data products in the TOM.

  • API endpoints: REST API endpoints give information about targets, timelapses, pipeline runs, and allow observations to be submitted.

  • Observation alerts: Associate an email address with an observation to receive email updates when data is available.

  • Observations with multiple instrument configurations: Submit LCO observations with multiple filters and exposure settings.

Long-running tasks (such as running data pipelines and creating large timelapses) are performed asynchronously in separate worker processes using Dramatiq via django_dramatiq and Redis.

Requirements

In addition to the requirements listed in setup.py you will need:

  • A working TOM (see TOM Toolkit documentation)
  • Python >= 3.6

Installation

  1. Set up a TOM following the getting started guide.

  2. Clone and install this package with pip:

pip install tom_education

Note: a dependency of one of tom_education's dependencies requires a Fortran compiler to install. On Ubuntu, run sudo apt-get install gfortran before installing with pip.

  1. Add tom_education to INSTALLED_APPS in settings.py.
INSTALLED_APPS = [
    ...
    'tom_education'
]
  1. Run the tom_education setup management command. Note that this overwrites settings.py and urls.py in the newly created project.
python manage.py tom_education_setup
  1. Install Redis, and start redis-server. If not running Redis on the same server as tom_education, or if using a non-default port, change the Redis connection settings in settings.py under DRAMATIQ_BROKER.

  2. Start the Dramatiq worker processes:

python manage.py rundramatiq

Note that rundramatiq must be restarted for code changes to take effect.

  1. Optional: install test dependencies and run tests to check everything is okay (Note: Redis and the Dramatiq workers do not have to be running to run the tests).
pip install tomtoolkit[test]
python manage.py test tom_education

Install Development version

Clone this repo and install the package with pip:

git clone https://github.com/joesingo/tom_education
pip install -e tom_education

Metadata

Release files for tom-education 1.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tom-education 1.1.2
File Size Uploaded
tom_education-1.1.2.tar.gz 53.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tom-education 1.1.2
File Interpreter ABI Platform
tom_education-1.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 127.4 kB

Release files / tom_education-1.1.2.tar.gz

Download URL tom_education-1.1.2.tar.gz
Size 53.7 kB
Tags Source
SHA-256 checksum
How to use checksums
54a1821fd1dd942f059afc5a0cf91de648a351257260bcac91b810d19bc595c3
BLAKE2b-256 checksum
How to use checksums
ee90a94bd7898570454739ef741cad4358b8544f4443ea7cc6dd82d069cad2c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

Release files / tom_education-1.1.2-py3-none-any.whl

Download URL tom_education-1.1.2-py3-none-any.whl
Size 73.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f37012ab23aa753921d6ebc2099234a770548b39b44012d7ad9d672351a169ff
BLAKE2b-256 checksum
How to use checksums
18edfbe895a5fb919e50dafbbca74628dda561011aa0e99e9f8445b69f34c605
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

Release history Release notifications | RSS feed

1.1.9

2 release files

1.1.8

2 release files

1.1.7

2 release files

1.1.6

3 release files

1.1.5

2 release files

1.1.4

2 release files

1.1.3

2 release files

This release

1.1.2 This release

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page