WorkspaceGen2

class lsst.ap.verify.WorkspaceGen2(location)

Bases: lsst.ap.verify.Workspace

A directory used by ap_verify to handle data.

Any object of this class represents a working directory containing (possibly empty) subdirectories for repositories. Constructing a WorkspaceGen2 does not initialize its repositories, as this requires external information.

Parameters
locationstr

The location on disk where the workspace will be set up. Will be created if it does not already exist.

Raises
EnvironmentError

Raised if location is not readable or not writeable

Attributes Summary

alertLocation

The absolute location of an output directory for persisted alert packets (str, read-only).

analysisButler

A Butler that can read pipeline outputs (lsst.daf.persistence.Butler, read-only).

calibRepo

The absolute path/URI to a Butler repo for calibration data (str, read-only).

configDir

The absolute location of a directory containing custom Task config files for use with the data (str, read-only).

dataRepo

The absolute path/URI to a Butler repo for science data (str, read-only).

dbLocation

The default absolute location of the source association database to be created or updated by the pipeline (str, read-only).

outputRepo

The absolute path/URI to a Butler repo for AP pipeline products (str, read-only).

templateRepo

The absolute path/URI to a Butler repo for precomputed templates (str, read-only).

workButler

A Butler that can produce pipeline inputs and outputs (lsst.daf.persistence.Butler, read-only).

workDir

The absolute location of the workspace as a whole (str, read-only).

Methods Summary

mkdir(directory)

Create a directory for the workspace.

Attributes Documentation

alertLocation
analysisButler

A Butler that can read pipeline outputs (lsst.daf.persistence.Butler, read-only).

calibRepo

The absolute path/URI to a Butler repo for calibration data (str, read-only).

configDir

The absolute location of a directory containing custom Task config files for use with the data (str, read-only).

dataRepo

The absolute path/URI to a Butler repo for science data (str, read-only).

dbLocation
outputRepo

The absolute path/URI to a Butler repo for AP pipeline products (str, read-only).

templateRepo

The absolute path/URI to a Butler repo for precomputed templates (str, read-only).

workButler

A Butler that can produce pipeline inputs and outputs (lsst.daf.persistence.Butler, read-only).

workDir

The absolute location of the workspace as a whole (str, read-only).

Methods Documentation

static mkdir(directory)

Create a directory for the workspace.

This method is intended to be called only by subclasses, and should not be used by external code.

Parameters
directorystr

The directory to create.