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 – logger

  • request – the pyramid request

  • discoveryDataDictionary – a dictionary of the discovery data for this transient.

  • objectComments – the comments for the object

  • atelData – the atel matches for the objects displayed on the webpage

  • lightcurveData – the transient lightcurve data

  • objectHistories – 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 – logger

  • atelData – the atel matches for the objects displayed on the webpage

  • transientBucketId -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 – logger

  • currentMag – the current magnitude estimate of the object

  • transientBucketId -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 – logger

  • discoveryDataDictionary – dictionary of the transient’s discovery data

  • lightcurveData – 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 – logger

  • transientBucketId – the transientBucketId

  • objectHistories – the transient lightcurve data

Return

  • alert – alert for when LSQ object has no recalibrated data yet