tom_education
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
-
Set up a TOM following the getting started guide.
-
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.
- Add
tom_educationtoINSTALLED_APPSinsettings.py.
INSTALLED_APPS = [
...
'tom_education'
]
- Run the
tom_educationsetup management command. Note that this overwritessettings.pyandurls.pyin the newly created project.
python manage.py tom_education_setup
-
Install Redis, and start
redis-server. If not running Redis on the same server astom_education, or if using a non-default port, change the Redis connection settings insettings.pyunderDRAMATIQ_BROKER. -
Start the Dramatiq worker processes:
python manage.py rundramatiq
Note that rundramatiq must be restarted for code changes to take effect.
- 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.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tom_education-1.1.6.tar.gz | 55.7 kB | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tom_education-1.1.6-py3.7.egg | Legacy Egg format | - | - | Details |
| tom_education-1.1.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 279.6 kB
Release files / tom_education-1.1.6.tar.gz
| Download URL | tom_education-1.1.6.tar.gz |
|---|---|
| Size | 55.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a1531618a9d0aab335892e4afe3c521956e24163cdcee31b6a37eb6c8fdd64d6
|
|
BLAKE2b-256 checksum How to use checksums |
21626dc5a4d45722fd28dc41e92e74481f028698c5569d80c3b269ccb5ebbab9
|
| 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.6-py3.7.egg
| Download URL | tom_education-1.1.6-py3.7.egg |
|---|---|
| Size | 147.2 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
dede854f416d49b0c1904bb26c301fc6b16a7d307536db22239f41e3d1d8da4b
|
|
BLAKE2b-256 checksum How to use checksums |
3994b9dc8b836f1821152731e756b7690f00646a15f6a715b5ee5a0be40b8297
|
| 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.6-py3-none-any.whl
| Download URL | tom_education-1.1.6-py3-none-any.whl |
|---|---|
| Size | 76.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a9dc04bf792084a57160dc7e30e41c60eec6c0fecc002a41d0c3809cb214cc43
|
|
BLAKE2b-256 checksum How to use checksums |
922cfd0cd1276fd2fc7885a975c8cfdbbd17a9f74a5f86246914ce6496ef8e36
|
| 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
|