Job

class lsst.validate.drp.base.Job(measurements=None, blobs=None)[source]

Bases: lsst.validate.drp.base.JsonSerializationMixin

A Job is a wrapper around all measurements and blob metadata associated with a validate_drp run.

Use the Job.json attribute to access a json-serializable dict of all measurements and blobs associated with the Job.

Parameters:

measurements : list, optional

List of MeasurementBase-derived objects.

blobs : list

List of BlobBase-derived objects.

Attributes Summary

availableMetrics
availableSpecLevels List of spec names that available for metrics measured in this Job.
json

Methods Summary

getMeasurement(metricName[, specName, bandpass]) Get a measurement in corresponding to the given criteria within the job.
registerBlob(b) Add a blob object to the Job.
registerMeasurement(m) Add a measurement object to the Job.

Attributes Documentation

availableMetrics
availableSpecLevels

List of spec names that available for metrics measured in this Job.

json

Methods Documentation

getMeasurement(metricName, specName=None, bandpass=None)[source]

Get a measurement in corresponding to the given criteria within the job.

registerBlob(b)[source]

Add a blob object to the Job.

Parameters:

b : lsst.validate.drp.base.BlobBase-type object

A blob object.

registerMeasurement(m)[source]

Add a measurement object to the Job.

Registering a measurement will also automatically register all linked blobs.

Parameters:

m : lsst.validate.drp.base.MeasurementBase-type object

A measurement object.