lsst.pex.config  13.0-3-g520d906+6
Public Member Functions | Public Attributes | List of all members
lsst.pex.config.choiceField.ChoiceField Class Reference
Inheritance diagram for lsst.pex.config.choiceField.ChoiceField:
lsst.pex.config.config.Field

Public Member Functions

def __init__ (self, doc, dtype, allowed, default=None, optional=True)
 
- Public Member Functions inherited from lsst.pex.config.config.Field
def __init__ (self, doc, dtype, default=None, check=None, optional=False)
 
def rename (self, instance)
 
def validate (self, instance)
 
def freeze (self, instance)
 
def save (self, outfile, instance)
 
def toDict (self, instance)
 
def __get__ (self, instance, owner=None, at=None, label="default")
 
def __set__ (self, instance, value, at=None, label='assignment')
 
def __delete__ (self, instance, at=None, label='deletion')
 

Public Attributes

 allowed
 
 source
 
- Public Attributes inherited from lsst.pex.config.config.Field
 dtype
 
 doc
 
 default
 
 check
 
 optional
 
 source
 

Additional Inherited Members

- Static Public Attributes inherited from lsst.pex.config.config.Field
 supportedTypes = set((str, unicode, basestring, oldStringType, bool, float, int, complex))
 

Detailed Description

Defines a Config Field which allows only a set of values
All allowed must be of the same type.
Allowed values should be provided as a dict of value, doc string pairs

Definition at line 31 of file choiceField.py.

Constructor & Destructor Documentation

◆ __init__()

def lsst.pex.config.choiceField.ChoiceField.__init__ (   self,
  doc,
  dtype,
  allowed,
  default = None,
  optional = True 
)

Definition at line 38 of file choiceField.py.

Member Data Documentation

◆ allowed

lsst.pex.config.choiceField.ChoiceField.allowed

Definition at line 39 of file choiceField.py.

◆ source

lsst.pex.config.choiceField.ChoiceField.source

Definition at line 59 of file choiceField.py.


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