TemplateTags¶
Given a
Target
, returns a list ofDataProduct
objects associated with thatTarget
Given a dictionary of dataproducts from an
ObservationRecord
, returns the subset that are saved to the TOM. This templatetag paginates the subset ofDataProduct
, and therefore requires the request to have a ‘page_saved’ key.This templatetag is intended to be used with the
all_data_products()
method from a facility, as it returns a dictionary with keys ofsaved
andunsaved
that have values of lists ofDataProduct
objects.
Given a dictionary of dataproducts from an
ObservationRecord
, returns a list of the subset that are not saved to the TOM.This templatetag is intended to be used with the
all_data_products()
method from a facility, as it returns a dictionary with keys ofsaved
andunsaved
that have values of lists ofDataProduct
objects.
Returns the full list of data products in the TOM, with the most recent first.
Displays a table of the most recent photometric points for a target.
Renders a photometric plot for a target.
This templatetag requires all
ReducedDatum
objects with a data_type ofphotometry
to be structured with the following keys in the JSON representation: magnitude, error, filter
Renders a spectroscopic plot for a
Target
. If aDataProduct
is specified, it will only render a plot with that spectrum.