marshall_webapp.models.transients.models_transients_get module ∞
model for transient data in the marshall database - use this code to grab the transient data
- Author
David Young
-
class
models_transients_get
(log, request, elementId=False, search=False, tcsCatalogueId=False)[source] ∞ Bases:
dryxPyramid.models.models_base.base_model
The worker class for the
models_transients_get
moduleKey Arguments
log
– loggerrequest
– the pyramid requestelementId
– the specific element id requests (or False)
-
_get_transient_data_from_database
()[source] ∞ get the sqlquery based on the request object parameters
Return
objectData
matchedTransientBucketIds
totalTicketCount
-
_set_default_parameters
()[source] ∞ set default parameters in the request object if they have not yet been set
-
_get_associated_transient_aka
()[source] ∞ get associated aka names for the trasnsients
Return
objectAkas
– the akas for the objects found
-
_get_associated_lightcurve_data
()[source] ∞ get associated lightcurve data for the matched transients
Return
lightCurveData
– the found objects’ lightcurve data
-
_get_associated_atel_data
()[source] ∞ get associated atel data for the matched transients
Return
transientAtelMatches
– the matched atels fot the transients
-
_get_associated_comments
()[source] ∞ get associated comments for the transients
Return
objectComments
– object comments