A Python API for the OTTER.
To install the OTTER API use
python3 -m pip install astro-otter
OTTER_ROOT
environment variable
export OTTER_ROOT=/path/to/where/to/clone
git clone https://github.com/astro-otter/otter.git $OTTER_ROOT/otter
git clone https://github.com/astro-otter/otterdb.git $OTTER_ROOT/otterdb
cd $OTTER_ROOT/otter
python -m pip install -e .
cd $OTTER_ROOT/otter/scripts/
python3 gen_summary_table.py --otterroot $OTTER_ROOT
import os
from otter import Otter
otter = Otter(os.path.join(os.environ['OTTER_ROOT'], 'otterdb', '.otter'))
res = otter.query(names='AT2018hyz')
print(res)
To install the OTTER API from the source code use
git clone https://github.com/astro-otter/otter.git
cd otter
python -m pip install .
This will be changed into the more convenient python -m pip install astro-otter
at a later date!
For developers, please also enable the pre-commit hooks using
pre-commit install
Directory | Contents |
---|---|
src/otter |
A pip installable API for interfacing with the OTTER database |
scripts |
The pipeline scripts for converting unprocessed data into the OTTER JSON format |
docs |
Documentation for the OTTER API |
test |
Some Unit tests for the source code |