LSSTApplications
16.0-10-g0ee56ad+5,16.0-11-ga33d1f2+5,16.0-12-g3ef5c14+3,16.0-12-g71e5ef5+18,16.0-12-gbdf3636+3,16.0-13-g118c103+3,16.0-13-g8f68b0a+3,16.0-15-gbf5c1cb+4,16.0-16-gfd17674+3,16.0-17-g7c01f5c+3,16.0-18-g0a50484+1,16.0-20-ga20f992+8,16.0-21-g0e05fd4+6,16.0-21-g15e2d33+4,16.0-22-g62d8060+4,16.0-22-g847a80f+4,16.0-25-gf00d9b8+1,16.0-28-g3990c221+4,16.0-3-gf928089+3,16.0-32-g88a4f23+5,16.0-34-gd7987ad+3,16.0-37-gc7333cb+2,16.0-4-g10fc685+2,16.0-4-g18f3627+26,16.0-4-g5f3a788+26,16.0-5-gaf5c3d7+4,16.0-5-gcc1f4bb+1,16.0-6-g3b92700+4,16.0-6-g4412fcd+3,16.0-6-g7235603+4,16.0-69-g2562ce1b+2,16.0-8-g14ebd58+4,16.0-8-g2df868b+1,16.0-8-g4cec79c+6,16.0-8-gadf6c7a+1,16.0-8-gfc7ad86,16.0-82-g59ec2a54a+1,16.0-9-g5400cdc+2,16.0-9-ge6233d7+5,master-g2880f2d8cf+3,v17.0.rc1
LSSTDataManagementBasePackage
|
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 175 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.