lsst.fgcmcal  20.0.0-8-g5dd23de+e66d8374b0
Public Member Functions | List of all members
lsst.fgcmcal.dataIds.TractCheckDataIdContainer Class Reference
Inheritance diagram for lsst.fgcmcal.dataIds.TractCheckDataIdContainer:

Public Member Functions

def castDataIds (self, butler)
 
def makeDataRefList (self, namespace)
 

Detailed Description

A version of lsst.pipe.base.DataIdContainer that ensures that tract
is additionally set with sourceTable_visit catalogs.

Definition at line 30 of file dataIds.py.

Member Function Documentation

◆ castDataIds()

def lsst.fgcmcal.dataIds.TractCheckDataIdContainer.castDataIds (   self,
  butler 
)
Validate data IDs and cast them to the correct type
(modify self.idList in place).

This code casts the values in the data IDs dicts in `self.idList`
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` (which
is defined by the templates).

This is taken from lsst.pipe.base.ArgumentParser.castDataIds(),
adding in a check that the tract is an int, which must be done
explicitly because it is not in the template.

Parameters
----------
butler : `lsst.daf.persistence.Butler`
    Data butler.

Definition at line 36 of file dataIds.py.

◆ makeDataRefList()

def lsst.fgcmcal.dataIds.TractCheckDataIdContainer.makeDataRefList (   self,
  namespace 
)

Definition at line 88 of file dataIds.py.


The documentation for this class was generated from the following file: