marshall_webapp.templates.commonelements.tickets.single_ticket.ticket_building_blocks.ticket_header_bar module ∞
The ticket header bar for the object ticket
- Author
David Young
-
ticket_header_bar
(log, request, discoveryDataDictionary, objectComments, atelData, lightcurveData, objectHistories)[source] ∞ get ticket header bar
Key Arguments
log
– loggerrequest
– the pyramid requestdiscoveryDataDictionary
– a dictionary of the discovery data for this transient.objectComments
– the comments for the objectatelData
– the atel matches for the objects displayed on the webpagelightcurveData
– the transient lightcurve dataobjectHistories
– the object histories
Return
ticket_header_bar
– the ticket identity bar for the pesssto object
-
_get_atel_warning
(log, atelData, transientBucketId)[source] ∞ get atel warning for ticket
Key Arguments
log
– loggeratelData
– the atel matches for the objects displayed on the webpagetransientBucketId
-the unquie id for the transient in the marshall database
Return
warning
or None – the atel warning
-
_get_magnitude_warning
(log, currentMag, transientBucketId)[source] ∞ get atel warning for ticket
Key Arguments
log
– loggercurrentMag
– the current magnitude estimate of the objecttransientBucketId
-the unquie id for the transient in the marshall database
Return
warning
or None – the atel warning
-
_get_no_lsq_recalibrated_data_alert
(log, lightcurveData, discoveryDataDictionary)[source] ∞ get no lsq recalibrated data alert
Key Arguments
log
– loggerdiscoveryDataDictionary
– dictionary of the transient’s discovery datalightcurveData
– the transient lightcurve data
Return
alert
– alert for when LSQ object has no recalibrated data yet
-
_resurrected_object_warning
(log, objectHistories, transientBucketId)[source] ∞ get no lsq recalibrated data alert
Key Arguments
log
– loggertransientBucketId
– the transientBucketIdobjectHistories
– the transient lightcurve data
Return
alert
– alert for when LSQ object has no recalibrated data yet