LSSTApplications  10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
Public Member Functions | Public Attributes | List of all members
lsst.daf.persistence.butlerFactory.ButlerFactory Class Reference
Inheritance diagram for lsst.daf.persistence.butlerFactory.ButlerFactory:

Public Member Functions

def __init__
 
def create
 

Public Attributes

 mapper
 

Detailed Description

ButlerFactory creates data Butlers containing data mappers.  Use of it
is deprecated in favor of the direct Butler constructor.

The ButlerFactory class takes a mapper for a data collection.
It can then create Butlers with these mappers.

A data identifier is a dictionary.  The keys match those understood by a
mapper; the values select particular data sets or collections of data
sets.  For example, one key might be "visit".  Specifying a value of
"695934" for this key might select a collection of images.

The mappers perform four functions:
  1. Determine what keys are valid for dataset ids.
  2. Obtain a collection of potential dataset ids matching a
     partial dataset id.
  3. Map a dataset id to the location of the dataset, including its
     C++ and Python types.
  4. Manipulate a retrieved dataset object so that it conforms to a
     standard.

Public methods:

__init__(self, mapper)

create(self)

Definition at line 31 of file butlerFactory.py.

Constructor & Destructor Documentation

def lsst.daf.persistence.butlerFactory.ButlerFactory.__init__ (   self,
  mapper 
)
Construct a ButlerFactory.

@param mapper mapper object.

Definition at line 59 of file butlerFactory.py.

59 
60  def __init__(self, mapper):
61  """Construct a ButlerFactory.
62 
63  @param mapper mapper object.
64  """
65 
66  self.mapper = mapper

Member Function Documentation

def lsst.daf.persistence.butlerFactory.ButlerFactory.create (   self)
Create a Butler.

@returns a new Butler.

Definition at line 67 of file butlerFactory.py.

67 
68  def create(self):
69  """Create a Butler.
70 
71  @returns a new Butler.
72  """
73 
74  return Butler(None, mapper=self.mapper)

Member Data Documentation

lsst.daf.persistence.butlerFactory.ButlerFactory.mapper

Definition at line 65 of file butlerFactory.py.


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