marshall_lightcurves (class)

class marshall_lightcurves(log, dbConn, settings=False, transientBucketIds=[])[source]

Bases: object

The worker class for the marshall_lightcurves module

Key Arguments

  • log – logger

  • settings – the settings dictionary

  • dbConn – the database connection for the mrshall

  • transientBucketIds – the transientBucketId(s) requiring lightcurves to be regenerated. (int or list)

Usage

To setup your logger, settings and database connections, please use the fundamentals package (see tutorial here).

To initiate a marshall_lightcurves object, use the following:

from marshallEngine.lightcurves import marshall_lightcurves
lc = marshall_lightcurves(
    log=log,
    dbConn=dbConn,
    settings=settings,
    transientBucketIds=[28421489, 28121353, 4637952, 27409808]
)
lc.plot()

Methods

plot()

generate a batch of lightcurves using multiprocessing given their transientBucketIds

plot()[source]

generate a batch of lightcurves using multiprocessing given their transientBucketIds

Return

  • filepath – path to the last generated plot file

Usage

from marshallEngine.lightcurves import marshall_lightcurves
lc = marshall_lightcurves(
    log=log,
    dbConn=dbConn,
    settings=settings,
    transientBucketIds=[28421489, 28121353, 4637952, 27409808]
)
lc.plot()