TOM toolkit plugin for educational projects
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tom_education-1.1.9.tar.gz.
File metadata
- Download URL: tom_education-1.1.9.tar.gz
- Upload date:
- Size: 56.6 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a7081630d792f55824819a70a6812e9fc5065dc882ee5f11c75c4323e8c95b4
|
|
| MD5 |
c64e56e925e36a043310cbcaf41c5795
|
|
| BLAKE2b-256 |
080cc6d78f3f3bd62e2d8b7fd5f77e41cf333ecaff0d91d83e9a42085702075d
|
File details
Details for the file tom_education-1.1.9-py3-none-any.whl.
File metadata
- Download URL: tom_education-1.1.9-py3-none-any.whl
- Upload date:
- Size: 78.8 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
581f0549fa59e873c9806507a804280b4ceca0cb82fa245355cc5a7e4595b5cf
|
|
| MD5 |
ba5d519d1e48ccb3b61fd92ec431e90c
|
|
| BLAKE2b-256 |
b0ee636e729d777af643f466b5d662fbbbedd8382598dc7bfaaf9ee690991da1
|