LSST Applications
21.0.0-172-gfb10e10a+18fedfabac,22.0.0+297cba6710,22.0.0+80564b0ff1,22.0.0+8d77f4f51a,22.0.0+a28f4c53b1,22.0.0+dcf3732eb2,22.0.1-1-g7d6de66+2a20fdde0d,22.0.1-1-g8e32f31+297cba6710,22.0.1-1-geca5380+7fa3b7d9b6,22.0.1-12-g44dc1dc+2a20fdde0d,22.0.1-15-g6a90155+515f58c32b,22.0.1-16-g9282f48+790f5f2caa,22.0.1-2-g92698f7+dcf3732eb2,22.0.1-2-ga9b0f51+7fa3b7d9b6,22.0.1-2-gd1925c9+bf4f0e694f,22.0.1-24-g1ad7a390+a9625a72a8,22.0.1-25-g5bf6245+3ad8ecd50b,22.0.1-25-gb120d7b+8b5510f75f,22.0.1-27-g97737f7+2a20fdde0d,22.0.1-32-gf62ce7b1+aa4237961e,22.0.1-4-g0b3f228+2a20fdde0d,22.0.1-4-g243d05b+871c1b8305,22.0.1-4-g3a563be+32dcf1063f,22.0.1-4-g44f2e3d+9e4ab0f4fa,22.0.1-42-gca6935d93+ba5e5ca3eb,22.0.1-5-g15c806e+85460ae5f3,22.0.1-5-g58711c4+611d128589,22.0.1-5-g75bb458+99c117b92f,22.0.1-6-g1c63a23+7fa3b7d9b6,22.0.1-6-g50866e6+84ff5a128b,22.0.1-6-g8d3140d+720564cf76,22.0.1-6-gd805d02+cc5644f571,22.0.1-8-ge5750ce+85460ae5f3,master-g6e05de7fdc+babf819c66,master-g99da0e417a+8d77f4f51a,w.2021.48
LSST Data Management Base Package
|
Public Member Functions | |
def | __init__ (self, args, role) |
def | repoArgs (self) |
def | repoData (self) |
def | __repr__ (self) |
def | setCfg (self, cfg, origin, root, isV1Repository) |
def | cfgOrigin (self) |
def | isNewRepository (self) |
def | role (self) |
def | role (self, val) |
def | getParentRepoDatas (self, context=None) |
def | addParentRepoData (self, parentRepoData) |
def | addTags (self, tags) |
Public Attributes | |
cfg | |
cfgRoot | |
repo | |
parentRepoDatas | |
isV1Repository | |
tags | |
role | |
parentRegistry | |
cfgOrigin | |
Container object for repository data used by Butler Parameters ---------- args : RepositoryArgs The arguments that are used to find or create the RepositoryCfg. role : string "input", "output", or "parent", indicating why Butler loaded this repository. * input: the Repository was passed as a Butler input. * output: the Repository was passed as a Butler output. * parent: the Repository was specified in the RepositoryCfg parents list of a readable repository. Attributes ---------- cfg: RepositoryCfg The configuration for the Repository. _cfgOrigin : string "new", "existing", or "nested". Indicates the origin of the repository and its RepositoryCfg: * new: it was created by this instance of Butler, and this instance of Butler will generate the RepositoryCfg file. * existing: it was found (via the root or cfgRoot argument) * nested: the full RepositoryCfg was nested in another RepositoryCfg's parents list (this can happen if parameters of an input specified by RepositoryArgs or dict does not entirely match an existing RepositoryCfg). cfgRoot : string Path or URI to the location of the RepositoryCfg file. repo : lsst.daf.persistence.Repository The Repository class instance. parentRepoDatas : list of RepoData The parents of this Repository, as indicated this Repository's RepositoryCfg. If this is a new Repository then these are the inputs to this Butler (and will be saved in the RepositoryCfg). These RepoData objects are not owned by this RepoData, these are references to peer RepoData objects in the Butler's RepoDataContainer. isV1Repository : bool True if this is an Old Butler repository. In this case the repository does not have a RepositoryCfg file. It may have a _mapper file and may have a _parent symlink. It will never be treated as a "new" repository, i.e. even though there is not a RepositoryCfg file, one will not be generated. If False, this is a New Butler repository and is specified by RepositoryCfg file. tags : set These are values that may be used to restrict the search of input repositories. Details are available in the RepositoryArgs and DataId classes. role : string "input", "output", or "parent", indicating why Butler loaded this repository. * input: the Repository was passed as a Butler input. * output: the Repository was passed as a Butler output. * parent: the Repository was specified in the RepositoryCfg parents list of a readable repository. _repoArgs : RepositoryArgs Contains the arguments that were used to specify this Repository.
def lsst.daf.persistence.butler.RepoData.__init__ | ( | self, | |
args, | |||
role | |||
) |
def lsst.daf.persistence.butler.RepoData.__repr__ | ( | self | ) |
Definition at line 141 of file butler.py.
def lsst.daf.persistence.butler.RepoData.addParentRepoData | ( | self, | |
parentRepoData | |||
) |
Definition at line 233 of file butler.py.
def lsst.daf.persistence.butler.RepoData.addTags | ( | self, | |
tags | |||
) |
def lsst.daf.persistence.butler.RepoData.cfgOrigin | ( | self | ) |
def lsst.daf.persistence.butler.RepoData.getParentRepoDatas | ( | self, | |
context = None |
|||
) |
Get the parents & grandparents etc of this repo data, in depth-first search order. Duplicate entries will be removed in cases where the same parent appears more than once in the parent graph. Parameters ---------- context : set, optional Users should typically omit context and accept the default argument. Context is used to keep a set of known RepoDatas when calling this function recursively, for duplicate elimination. Returns ------- list of RepoData A list of the parents & grandparents etc of a given repo data, in depth-first search order.
def lsst.daf.persistence.butler.RepoData.isNewRepository | ( | self | ) |
def lsst.daf.persistence.butler.RepoData.repoArgs | ( | self | ) |
def lsst.daf.persistence.butler.RepoData.repoData | ( | self | ) |
def lsst.daf.persistence.butler.RepoData.role | ( | self | ) |
def lsst.daf.persistence.butler.RepoData.role | ( | self, | |
val | |||
) |
def lsst.daf.persistence.butler.RepoData.setCfg | ( | self, | |
cfg, | |||
origin, | |||
root, | |||
isV1Repository | |||
) |
Set information about the cfg into the RepoData Parameters ---------- cfg : RepositoryCfg The RepositoryCfg for the repo. origin : string 'new', 'existing', or 'nested' root : string URI or absolute path to the location of the RepositoryCfg.yaml file. Returns ------- None
Definition at line 164 of file butler.py.