Skip to content

Create a T2

Mickael Rigault edited this page Jan 5, 2018 · 2 revisions

Basic Structure

T2 module Inputs

The input of any T2 module is a Transient.

The typical methods of Transient are:

  • get_radec(*args, **kwargs) # this could be a list of RA/Dec
  • get_photopoint(*args, **kwargs) # Photopoint or list of
  • get_t2results(*args, **kwargs) # queries already ran T2 module results

T2 module Output

It returns a dictionary of key values (no object instances inside). That means, you dictionaries must be serializable, so for simplicity, the output dictionary should only contains:

  • float / int / string (or any native python variable)
  • list [], () # warning no numpy array
  • dictionary {}

To be done

@valery: Please add link to Transient object

Clone this wiki locally