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 module

Key Arguments

  • log – logger

  • request – the pyramid request

  • elementId – the specific element id requests (or False)

get()[source]

get the transientData object

Return

  • transientData

_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

_get_total_ticket_count_for_list(queryWhere)[source]

get total ticket count for list

Key Arguments

  • queryWhere – the where segment of the ticket list sqlQuery string

Return

  • totalTickets – total number of object in list

_clean_data_for_plain_text_outputs()[source]

clean data for plain text outputs

Return

  • None

_get_associated_transient_history()[source]

get associated transient history

_get_associated_transient_crossmatches()[source]

get associated transient crossmatches

close()[source]