LSST Applications
22.0.1,22.0.1+01bcf6a671,22.0.1+046ee49490,22.0.1+05c7de27da,22.0.1+0c6914dbf6,22.0.1+1220d50b50,22.0.1+12fd109e95,22.0.1+1a1dd69893,22.0.1+1c910dc348,22.0.1+1ef34551f5,22.0.1+30170c3d08,22.0.1+39153823fd,22.0.1+611137eacc,22.0.1+771eb1e3e8,22.0.1+94e66cc9ed,22.0.1+9a075d06e2,22.0.1+a5ff6e246e,22.0.1+a7db719c1a,22.0.1+ba0d97e778,22.0.1+bfe1ee9056,22.0.1+c4e1e0358a,22.0.1+cc34b8281e,22.0.1+d640e2c0fa,22.0.1+d72a2e677a,22.0.1+d9a6b571bd,22.0.1+e485e9761b,22.0.1+ebe8d3385e
LSST Data Management Base Package
|
Public Member Functions | |
def | __init__ (self, level=None) |
def | setDatasetType (self, datasetType) |
def | castDataIds (self, butler) |
def | makeDataRefList (self, namespace) |
Public Attributes | |
datasetType | |
level | |
idList | |
refList | |
Container for data IDs and associated data references. Parameters ---------- level : `str` The lowest hierarchy level to descend to for this dataset type, for example `"amp"` for `"raw"` or `"ccd"` for `"calexp"`. Use `""` to use the mapper's default for the dataset type. This class does not support `None`, but if it did, `None` would mean the level should not be restricted. Notes ----- Override this class for data IDs that require special handling to be converted to ``data references``, and specify the override class as ``ContainerClass`` for ``add_id_argument``. If you don't want the argument parser to compute data references, specify ``doMakeDataRefList=False`` in ``add_id_argument``.
Definition at line 75 of file argumentParser.py.
def lsst.pipe.base.argumentParser.DataIdContainer.__init__ | ( | self, | |
level = None |
|||
) |
Definition at line 97 of file argumentParser.py.
def lsst.pipe.base.argumentParser.DataIdContainer.castDataIds | ( | self, | |
butler | |||
) |
Validate data IDs and cast them to the correct type (modify idList in place). This code casts the values in the data IDs dicts in `dataIdList` to the type required by the butler. Data IDs are read from the command line as `str`, but the butler requires some values to be other types. For example "visit" values should be `int`. Parameters ---------- butler : `lsst.daf.persistence.Butler` Data butler.
Definition at line 133 of file argumentParser.py.
def lsst.pipe.base.argumentParser.DataIdContainer.makeDataRefList | ( | self, | |
namespace | |||
) |
Compute refList based on idList. Parameters ---------- namespace : `argparse.Namespace` Results of parsing command-line. The ``butler`` and ``log`` elements must be set. Notes ----- Not called if ``add_id_argument`` was called with ``doMakeDataRefList=False``.
Definition at line 176 of file argumentParser.py.
def lsst.pipe.base.argumentParser.DataIdContainer.setDatasetType | ( | self, | |
datasetType | |||
) |
Set actual dataset type, once it is known. Parameters ---------- datasetType : `str` Dataset type. Notes ----- The reason ``datasetType`` is not a constructor argument is that some subclasses do not know the dataset type until the command is parsed. Thus, to reduce special cases in the code, ``datasetType`` is always set after the command is parsed.
Definition at line 116 of file argumentParser.py.
lsst.pipe.base.argumentParser.DataIdContainer.datasetType |
Definition at line 98 of file argumentParser.py.
lsst.pipe.base.argumentParser.DataIdContainer.idList |
Definition at line 104 of file argumentParser.py.
lsst.pipe.base.argumentParser.DataIdContainer.level |
Definition at line 101 of file argumentParser.py.
lsst.pipe.base.argumentParser.DataIdContainer.refList |
Definition at line 108 of file argumentParser.py.