LSSTApplications  16.0-11-g09ed895+2,16.0-11-g12e47bd,16.0-11-g9bb73b2+6,16.0-12-g5c924a4+6,16.0-14-g9a974b3+1,16.0-15-g1417920+1,16.0-15-gdd5ca33+1,16.0-16-gf0259e2,16.0-17-g31abd91+7,16.0-17-g7d7456e+7,16.0-17-ga3d2e9f+13,16.0-18-ga4d4bcb+1,16.0-18-gd06566c+1,16.0-2-g0febb12+21,16.0-2-g9d5294e+69,16.0-2-ga8830df+6,16.0-20-g21842373+7,16.0-24-g3eae5ec,16.0-28-gfc9ea6c+4,16.0-29-ge8801f9,16.0-3-ge00e371+34,16.0-4-g18f3627+13,16.0-4-g5f3a788+20,16.0-4-ga3eb747+10,16.0-4-gabf74b7+29,16.0-4-gb13d127+6,16.0-49-g42e581f7+6,16.0-5-g27fb78a+7,16.0-5-g6a53317+34,16.0-5-gb3f8a4b+87,16.0-6-g9321be7+4,16.0-6-gcbc7b31+42,16.0-6-gf49912c+29,16.0-7-gd2eeba5+51,16.0-71-ge89f8615e,16.0-8-g21fd5fe+29,16.0-8-g3a9f023+20,16.0-8-g4734f7a+1,16.0-8-g5858431+3,16.0-9-gf5c1f43+8,master-gd73dc1d098+1,w.2019.01
LSSTDataManagementBasePackage
Public Member Functions | Static Public Attributes | Properties | List of all members
lsst.meas.base.forcedPhotCcd.ForcedPhotCcdConfig Class Reference
Inheritance diagram for lsst.meas.base.forcedPhotCcd.ForcedPhotCcdConfig:
lsst.meas.base.forcedPhotImage.ForcedPhotImageConfig lsst.pex.config.config.Config lsst.pex.config.config.ConfigMeta

Public Member Functions

def setDefaults (self)
 
def __iter__ (self)
 Iterate over fields. More...
 
def keys (self)
 Return the list of field names. More...
 
def values (self)
 Return the list of field values. More...
 
def items (self)
 Return the list of (field name, field value) pairs. More...
 
def iteritems (self)
 Iterate over (field name, field value) pairs. More...
 
def itervalues (self)
 Iterate over field values. More...
 
def iterkeys (self)
 Iterate over field names. More...
 
def __contains__ (self, name)
 Return True if the specified field exists in this config. More...
 
def __new__ (cls, args, kw)
 Allocate a new Config object. More...
 
def __reduce__ (self)
 
def update (self, kw)
 Update values specified by the keyword arguments. More...
 
def load (self, filename, root="config")
 Modify this config in place by executing the Python code in the named file. More...
 
def loadFromStream (self, stream, root="config", filename=None)
 Modify this config in place by executing the python code in the provided stream. More...
 
def save (self, filename, root="config")
 Save a python script to the named file, which, when loaded, reproduces this Config. More...
 
def saveToStream (self, outfile, root="config")
 Save a python script to a stream, which, when loaded, reproduces this Config. More...
 
def freeze (self)
 Make this Config and all sub-configs read-only. More...
 
def toDict (self)
 Return a dict of field name: value. More...
 
def names (self)
 Return all the keys in a config recursively. More...
 
def validate (self)
 Validate the Config; raise an exception if invalid. More...
 
def formatHistory (self, name, kwargs)
 Format the specified config field's history to a more human-readable format. More...
 
def __setattr__ (self, attr, value, at=None, label="assignment")
 Regulate which attributes can be set. More...
 
def __setattr__ (cls, name, value)
 
def __delattr__ (self, attr, at=None, label="deletion")
 
def __eq__ (self, other)
 
def __ne__ (self, other)
 
def __str__ (self)
 
def __repr__ (self)
 
def compare (self, other, shortcut=True, rtol=1E-8, atol=1E-8, output=None)
 Compare two Configs for equality; return True if equal. More...
 

Static Public Attributes

 doApplyUberCal
 
 references
 
 measurement
 
 coaddName
 
 doApCorr
 
 applyApCorr
 
 catalogCalculation
 

Properties

 history = property(lambda x: x._history)
 

Detailed Description

Definition at line 141 of file forcedPhotCcd.py.

Member Function Documentation

◆ __contains__()

def lsst.pex.config.config.Config.__contains__ (   self,
  name 
)
inherited

Return True if the specified field exists in this config.

Parameters
[in]namefield name to test for

Definition at line 454 of file config.py.

454  def __contains__(self, name):
455  """!Return True if the specified field exists in this config
456 
457  @param[in] name field name to test for
458  """
459  return self._storage.__contains__(name)
460 

◆ __delattr__()

def lsst.pex.config.config.Config.__delattr__ (   self,
  attr,
  at = None,
  label = "deletion" 
)
inherited

Definition at line 746 of file config.py.

746  def __delattr__(self, attr, at=None, label="deletion"):
747  if attr in self._fields:
748  if at is None:
749  at = getCallStack()
750  self._fields[attr].__delete__(self, at=at, label=label)
751  else:
752  object.__delattr__(self, attr)
753 
def getCallStack(skip=0)
Definition: callStack.py:153

◆ __eq__()

def lsst.pex.config.config.Config.__eq__ (   self,
  other 
)
inherited

Definition at line 754 of file config.py.

754  def __eq__(self, other):
755  if type(other) == type(self):
756  for name in self._fields:
757  thisValue = getattr(self, name)
758  otherValue = getattr(other, name)
759  if isinstance(thisValue, float) and math.isnan(thisValue):
760  if not math.isnan(otherValue):
761  return False
762  elif thisValue != otherValue:
763  return False
764  return True
765  return False
766 
table::Key< int > type
Definition: Detector.cc:164

◆ __iter__()

def lsst.pex.config.config.Config.__iter__ (   self)
inherited

Iterate over fields.

Definition at line 419 of file config.py.

419  def __iter__(self):
420  """!Iterate over fields
421  """
422  return self._fields.__iter__()
423 

◆ __ne__()

def lsst.pex.config.config.Config.__ne__ (   self,
  other 
)
inherited

Definition at line 767 of file config.py.

767  def __ne__(self, other):
768  return not self.__eq__(other)
769 

◆ __new__()

def lsst.pex.config.config.Config.__new__ (   cls,
  args,
  kw 
)
inherited

Allocate a new Config object.

In order to ensure that all Config object are always in a proper state when handed to users or to derived Config classes, some attributes are handled at allocation time rather than at initialization

This ensures that even if a derived Config class implements init, the author does not need to be concerned about when or even if he should call the base Config.__init__

Definition at line 461 of file config.py.

461  def __new__(cls, *args, **kw):
462  """!Allocate a new Config object.
463 
464  In order to ensure that all Config object are always in a proper
465  state when handed to users or to derived Config classes, some
466  attributes are handled at allocation time rather than at initialization
467 
468  This ensures that even if a derived Config class implements __init__,
469  the author does not need to be concerned about when or even if he
470  should call the base Config.__init__
471  """
472  name = kw.pop("__name", None)
473  at = kw.pop("__at", getCallStack())
474  # remove __label and ignore it
475  kw.pop("__label", "default")
476 
477  instance = object.__new__(cls)
478  instance._frozen = False
479  instance._name = name
480  instance._storage = {}
481  instance._history = {}
482  instance._imports = set()
483  # load up defaults
484  for field in instance._fields.values():
485  instance._history[field.name] = []
486  field.__set__(instance, field.default, at=at + [field.source], label="default")
487  # set custom default-overides
488  instance.setDefaults()
489  # set constructor overides
490  instance.update(__at=at, **kw)
491  return instance
492 
daf::base::PropertySet * set
Definition: fits.cc:832
def getCallStack(skip=0)
Definition: callStack.py:153

◆ __reduce__()

def lsst.pex.config.config.Config.__reduce__ (   self)
inherited
Reduction for pickling (function with arguments to reproduce).

We need to condense and reconstitute the Config, since it may contain lambdas
(as the 'check' elements) that cannot be pickled.

Definition at line 493 of file config.py.

493  def __reduce__(self):
494  """Reduction for pickling (function with arguments to reproduce).
495 
496  We need to condense and reconstitute the Config, since it may contain lambdas
497  (as the 'check' elements) that cannot be pickled.
498  """
499  # The stream must be in characters to match the API but pickle requires bytes
500  stream = io.StringIO()
501  self.saveToStream(stream)
502  return (unreduceConfig, (self.__class__, stream.getvalue().encode()))
503 

◆ __repr__()

def lsst.pex.config.config.Config.__repr__ (   self)
inherited

Definition at line 773 of file config.py.

773  def __repr__(self):
774  return "%s(%s)" % (
775  _typeStr(self),
776  ", ".join("%s=%r" % (k, v) for k, v in self.toDict().items() if v is not None)
777  )
778 
std::vector< SchemaItem< Flag > > * items

◆ __setattr__() [1/2]

def lsst.pex.config.config.ConfigMeta.__setattr__ (   cls,
  name,
  value 
)
inherited

Definition at line 110 of file config.py.

110  def __setattr__(cls, name, value):
111  if isinstance(value, Field):
112  value.name = name
113  cls._fields[name] = value
114  type.__setattr__(cls, name, value)
115 
116 

◆ __setattr__() [2/2]

def lsst.pex.config.config.Config.__setattr__ (   self,
  attr,
  value,
  at = None,
  label = "assignment" 
)
inherited

Regulate which attributes can be set.

Unlike normal python objects, Config objects are locked such that no additional attributes nor properties may be added to them dynamically.

Although this is not the standard Python behavior, it helps to protect users from accidentally mispelling a field name, or trying to set a non-existent field.

Definition at line 720 of file config.py.

720  def __setattr__(self, attr, value, at=None, label="assignment"):
721  """!Regulate which attributes can be set
722 
723  Unlike normal python objects, Config objects are locked such
724  that no additional attributes nor properties may be added to them
725  dynamically.
726 
727  Although this is not the standard Python behavior, it helps to
728  protect users from accidentally mispelling a field name, or
729  trying to set a non-existent field.
730  """
731  if attr in self._fields:
732  if at is None:
733  at = getCallStack()
734  # This allows Field descriptors to work.
735  self._fields[attr].__set__(self, value, at=at, label=label)
736  elif hasattr(getattr(self.__class__, attr, None), '__set__'):
737  # This allows properties and other non-Field descriptors to work.
738  return object.__setattr__(self, attr, value)
739  elif attr in self.__dict__ or attr in ("_name", "_history", "_storage", "_frozen", "_imports"):
740  # This allows specific private attributes to work.
741  self.__dict__[attr] = value
742  else:
743  # We throw everything else.
744  raise AttributeError("%s has no attribute %s" % (_typeStr(self), attr))
745 
def getCallStack(skip=0)
Definition: callStack.py:153

◆ __str__()

def lsst.pex.config.config.Config.__str__ (   self)
inherited

Definition at line 770 of file config.py.

770  def __str__(self):
771  return str(self.toDict())
772 

◆ compare()

def lsst.pex.config.config.Config.compare (   self,
  other,
  shortcut = True,
  rtol = 1E-8,
  atol = 1E-8,
  output = None 
)
inherited

Compare two Configs for equality; return True if equal.

If the Configs contain RegistryFields or ConfigChoiceFields, unselected Configs will not be compared.

Parameters
[in]otherConfig object to compare with self.
[in]shortcutIf True, return as soon as an inequality is found.
[in]rtolRelative tolerance for floating point comparisons.
[in]atolAbsolute tolerance for floating point comparisons.
[in]outputIf not None, a callable that takes a string, used (possibly repeatedly) to report inequalities.

Floating point comparisons are performed by numpy.allclose; refer to that for details.

Definition at line 779 of file config.py.

779  def compare(self, other, shortcut=True, rtol=1E-8, atol=1E-8, output=None):
780  """!Compare two Configs for equality; return True if equal
781 
782  If the Configs contain RegistryFields or ConfigChoiceFields, unselected Configs
783  will not be compared.
784 
785  @param[in] other Config object to compare with self.
786  @param[in] shortcut If True, return as soon as an inequality is found.
787  @param[in] rtol Relative tolerance for floating point comparisons.
788  @param[in] atol Absolute tolerance for floating point comparisons.
789  @param[in] output If not None, a callable that takes a string, used (possibly repeatedly)
790  to report inequalities.
791 
792  Floating point comparisons are performed by numpy.allclose; refer to that for details.
793  """
794  name1 = self._name if self._name is not None else "config"
795  name2 = other._name if other._name is not None else "config"
796  name = getComparisonName(name1, name2)
797  return compareConfigs(name, self, other, shortcut=shortcut,
798  rtol=rtol, atol=atol, output=output)
799 
800 
def compareConfigs(name, c1, c2, shortcut=True, rtol=1E-8, atol=1E-8, output=None)
Definition: comparison.py:67
def getComparisonName(name1, name2)
Definition: comparison.py:35

◆ formatHistory()

def lsst.pex.config.config.Config.formatHistory (   self,
  name,
  kwargs 
)
inherited

Format the specified config field's history to a more human-readable format.

Parameters
[in]namename of field whose history is wanted
[in]kwargskeyword arguments for lsst.pex.config.history.format
Returns
a string containing the formatted history

Definition at line 705 of file config.py.

705  def formatHistory(self, name, **kwargs):
706  """!Format the specified config field's history to a more human-readable format
707 
708  @param[in] name name of field whose history is wanted
709  @param[in] kwargs keyword arguments for lsst.pex.config.history.format
710  @return a string containing the formatted history
711  """
712  import lsst.pex.config.history as pexHist
713  return pexHist.format(self, name, **kwargs)
714 

◆ freeze()

def lsst.pex.config.config.Config.freeze (   self)
inherited

Make this Config and all sub-configs read-only.

Definition at line 624 of file config.py.

624  def freeze(self):
625  """!Make this Config and all sub-configs read-only
626  """
627  self._frozen = True
628  for field in self._fields.values():
629  field.freeze(self)
630 

◆ items()

def lsst.pex.config.config.Config.items (   self)
inherited

Return the list of (field name, field value) pairs.

Definition at line 434 of file config.py.

434  def items(self):
435  """!Return the list of (field name, field value) pairs
436  """
437  return list(self._storage.items())
438 
std::vector< SchemaItem< Flag > > * items
daf::base::PropertyList * list
Definition: fits.cc:833

◆ iteritems()

def lsst.pex.config.config.Config.iteritems (   self)
inherited

Iterate over (field name, field value) pairs.

Definition at line 439 of file config.py.

439  def iteritems(self):
440  """!Iterate over (field name, field value) pairs
441  """
442  return iter(self._storage.items())
443 
std::vector< SchemaItem< Flag > > * items

◆ iterkeys()

def lsst.pex.config.config.Config.iterkeys (   self)
inherited

Iterate over field names.

Definition at line 449 of file config.py.

449  def iterkeys(self):
450  """!Iterate over field names
451  """
452  return iter(self.storage.keys())
453 

◆ itervalues()

def lsst.pex.config.config.Config.itervalues (   self)
inherited

Iterate over field values.

Definition at line 444 of file config.py.

444  def itervalues(self):
445  """!Iterate over field values
446  """
447  return iter(self.storage.values())
448 

◆ keys()

def lsst.pex.config.config.Config.keys (   self)
inherited

Return the list of field names.

Definition at line 424 of file config.py.

424  def keys(self):
425  """!Return the list of field names
426  """
427  return list(self._storage.keys())
428 
daf::base::PropertyList * list
Definition: fits.cc:833

◆ load()

def lsst.pex.config.config.Config.load (   self,
  filename,
  root = "config" 
)
inherited

Modify this config in place by executing the Python code in the named file.

Parameters
[in]filenamename of file containing config override code
[in]rootname of variable in file that refers to the config being overridden

For example: if the value of root is "config" and the file contains this text: "config.myField = 5" then this config's field "myField" is set to 5.

Deprecated:
For purposes of backwards compatibility, older config files that use root="root" instead of root="config" will be loaded with a warning printed to sys.stderr. This feature will be removed at some point.

Definition at line 531 of file config.py.

531  def load(self, filename, root="config"):
532  """!Modify this config in place by executing the Python code in the named file.
533 
534  @param[in] filename name of file containing config override code
535  @param[in] root name of variable in file that refers to the config being overridden
536 
537  For example: if the value of root is "config" and the file contains this text:
538  "config.myField = 5" then this config's field "myField" is set to 5.
539 
540  @deprecated For purposes of backwards compatibility, older config files that use
541  root="root" instead of root="config" will be loaded with a warning printed to sys.stderr.
542  This feature will be removed at some point.
543  """
544  with open(filename, "r") as f:
545  code = compile(f.read(), filename=filename, mode="exec")
546  self.loadFromStream(stream=code, root=root)
547 

◆ loadFromStream()

def lsst.pex.config.config.Config.loadFromStream (   self,
  stream,
  root = "config",
  filename = None 
)
inherited

Modify this config in place by executing the python code in the provided stream.

Parameters
[in]streamopen file object, string or compiled string containing config override code
[in]rootname of variable in stream that refers to the config being overridden
[in]filenamename of config override file, or None if unknown or contained in the stream; used for error reporting

For example: if the value of root is "config" and the stream contains this text: "config.myField = 5" then this config's field "myField" is set to 5.

Deprecated:
For purposes of backwards compatibility, older config files that use root="root" instead of root="config" will be loaded with a warning printed to sys.stderr. This feature will be removed at some point.

Definition at line 548 of file config.py.

548  def loadFromStream(self, stream, root="config", filename=None):
549  """!Modify this config in place by executing the python code in the provided stream.
550 
551  @param[in] stream open file object, string or compiled string containing config override code
552  @param[in] root name of variable in stream that refers to the config being overridden
553  @param[in] filename name of config override file, or None if unknown or contained
554  in the stream; used for error reporting
555 
556  For example: if the value of root is "config" and the stream contains this text:
557  "config.myField = 5" then this config's field "myField" is set to 5.
558 
559  @deprecated For purposes of backwards compatibility, older config files that use
560  root="root" instead of root="config" will be loaded with a warning printed to sys.stderr.
561  This feature will be removed at some point.
562  """
563  with RecordingImporter() as importer:
564  try:
565  local = {root: self}
566  exec(stream, {}, local)
567  except NameError as e:
568  if root == "config" and "root" in e.args[0]:
569  if filename is None:
570  # try to determine the file name; a compiled string has attribute "co_filename",
571  # an open file has attribute "name", else give up
572  filename = getattr(stream, "co_filename", None)
573  if filename is None:
574  filename = getattr(stream, "name", "?")
575  print(f"Config override file {filename!r}"
576  " appears to use 'root' instead of 'config'; trying with 'root'", file=sys.stderr)
577  local = {"root": self}
578  exec(stream, {}, local)
579  else:
580  raise
581 
582  self._imports.update(importer.getModules())
583 

◆ names()

def lsst.pex.config.config.Config.names (   self)
inherited

Return all the keys in a config recursively.

Definition at line 651 of file config.py.

651  def names(self):
652  """!Return all the keys in a config recursively
653  """
654  #
655  # Rather than sort out the recursion all over again use the
656  # pre-existing saveToStream()
657  #
658  with io.StringIO() as strFd:
659  self.saveToStream(strFd, "config")
660  contents = strFd.getvalue()
661  strFd.close()
662  #
663  # Pull the names out of the dumped config
664  #
665  keys = []
666  for line in contents.split("\n"):
667  if re.search(r"^((assert|import)\s+|\s*$|#)", line):
668  continue
669 
670  mat = re.search(r"^(?:config\.)?([^=]+)\s*=\s*.*", line)
671  if mat:
672  keys.append(mat.group(1))
673 
674  return keys
675 

◆ save()

def lsst.pex.config.config.Config.save (   self,
  filename,
  root = "config" 
)
inherited

Save a python script to the named file, which, when loaded, reproduces this Config.

Parameters
[in]filenamename of file to which to write the config
[in]rootname to use for the root config variable; the same value must be used when loading

Definition at line 584 of file config.py.

584  def save(self, filename, root="config"):
585  """!Save a python script to the named file, which, when loaded, reproduces this Config
586 
587  @param[in] filename name of file to which to write the config
588  @param[in] root name to use for the root config variable; the same value must be used when loading
589  """
590  d = os.path.dirname(filename)
591  with tempfile.NamedTemporaryFile(mode="w", delete=False, dir=d) as outfile:
592  self.saveToStream(outfile, root)
593  # tempfile is hardcoded to create files with mode '0600'
594  # for an explantion of these antics see:
595  # https://stackoverflow.com/questions/10291131/how-to-use-os-umask-in-python
596  umask = os.umask(0o077)
597  os.umask(umask)
598  os.chmod(outfile.name, (~umask & 0o666))
599  # chmod before the move so we get quasi-atomic behavior if the
600  # source and dest. are on the same filesystem.
601  # os.rename may not work across filesystems
602  shutil.move(outfile.name, filename)
603 

◆ saveToStream()

def lsst.pex.config.config.Config.saveToStream (   self,
  outfile,
  root = "config" 
)
inherited

Save a python script to a stream, which, when loaded, reproduces this Config.

Parameters
outfile[inout] open file object to which to write the config. Accepts strings not bytes.
root[in] name to use for the root config variable; the same value must be used when loading

Definition at line 604 of file config.py.

604  def saveToStream(self, outfile, root="config"):
605  """!Save a python script to a stream, which, when loaded, reproduces this Config
606 
607  @param outfile [inout] open file object to which to write the config. Accepts strings not bytes.
608  @param root [in] name to use for the root config variable; the same value must be used when loading
609  """
610  tmp = self._name
611  self._rename(root)
612  try:
613  configType = type(self)
614  typeString = _typeStr(configType)
615  outfile.write(u"import {}\n".format(configType.__module__))
616  outfile.write(u"assert type({})=={}, 'config is of type %s.%s ".format(root, typeString))
617  outfile.write(u"instead of {}' % (type({}).__module__, type({}).__name__)\n".format(typeString,
618  root,
619  root))
620  self._save(outfile)
621  finally:
622  self._rename(tmp)
623 
table::Key< int > type
Definition: Detector.cc:164
def format(config, name=None, writeSourceLine=True, prefix="", verbose=False)
Definition: history.py:129

◆ setDefaults()

def lsst.meas.base.forcedPhotImage.ForcedPhotImageConfig.setDefaults (   self)
inherited

Definition at line 72 of file forcedPhotImage.py.

72  def setDefaults(self):
73  # Docstring inherited.
74  # Make catalogCalculation a no-op by default as no modelFlux is setup by default in
75  # ForcedMeasurementTask
76  self.catalogCalculation.plugins.names = []
77 
78 

◆ toDict()

def lsst.pex.config.config.Config.toDict (   self)
inherited

Return a dict of field name: value.

Correct behavior is dependent on proper implementation of Field.toDict. If implementing a new Field type, you may need to implement your own toDict method.

Definition at line 640 of file config.py.

640  def toDict(self):
641  """!Return a dict of field name: value
642 
643  Correct behavior is dependent on proper implementation of Field.toDict. If implementing a new
644  Field type, you may need to implement your own toDict method.
645  """
646  dict_ = {}
647  for name, field in self._fields.items():
648  dict_[name] = field.toDict(self)
649  return dict_
650 
std::vector< SchemaItem< Flag > > * items

◆ update()

def lsst.pex.config.config.Config.update (   self,
  kw 
)
inherited

Update values specified by the keyword arguments.

Warning
The '__at' and '__label' keyword arguments are special internal keywords. They are used to strip out any internal steps from the history tracebacks of the config. Modifying these keywords allows users to lie about a Config's history. Please do not do so!

Definition at line 513 of file config.py.

513  def update(self, **kw):
514  """!Update values specified by the keyword arguments
515 
516  @warning The '__at' and '__label' keyword arguments are special internal
517  keywords. They are used to strip out any internal steps from the
518  history tracebacks of the config. Modifying these keywords allows users
519  to lie about a Config's history. Please do not do so!
520  """
521  at = kw.pop("__at", getCallStack())
522  label = kw.pop("__label", "update")
523 
524  for name, value in kw.items():
525  try:
526  field = self._fields[name]
527  field.__set__(self, value, at=at, label=label)
528  except KeyError:
529  raise KeyError("No field of name %s exists in config type %s" % (name, _typeStr(self)))
530 
def getCallStack(skip=0)
Definition: callStack.py:153

◆ validate()

def lsst.pex.config.config.Config.validate (   self)
inherited

Validate the Config; raise an exception if invalid.

The base class implementation performs type checks on all fields by calling Field.validate().

Complex single-field validation can be defined by deriving new Field types. As syntactic sugar, some derived Field types are defined in this module which handle recursing into sub-configs (ConfigField, ConfigChoiceField)

Inter-field relationships should only be checked in derived Config classes after calling this method, and base validation is complete

Definition at line 688 of file config.py.

688  def validate(self):
689  """!Validate the Config; raise an exception if invalid
690 
691  The base class implementation performs type checks on all fields by
692  calling Field.validate().
693 
694  Complex single-field validation can be defined by deriving new Field
695  types. As syntactic sugar, some derived Field types are defined in
696  this module which handle recursing into sub-configs
697  (ConfigField, ConfigChoiceField)
698 
699  Inter-field relationships should only be checked in derived Config
700  classes after calling this method, and base validation is complete
701  """
702  for field in self._fields.values():
703  field.validate(self)
704 

◆ values()

def lsst.pex.config.config.Config.values (   self)
inherited

Return the list of field values.

Definition at line 429 of file config.py.

429  def values(self):
430  """!Return the list of field values
431  """
432  return list(self._storage.values())
433 
daf::base::PropertyList * list
Definition: fits.cc:833

Member Data Documentation

◆ applyApCorr

lsst.meas.base.forcedPhotImage.ForcedPhotImageConfig.applyApCorr
staticinherited
Initial value:
target=ApplyApCorrTask,
doc="Subtask to apply aperture corrections"
)

Definition at line 63 of file forcedPhotImage.py.

◆ catalogCalculation

lsst.meas.base.forcedPhotImage.ForcedPhotImageConfig.catalogCalculation
staticinherited
Initial value:
target=CatalogCalculationTask,
doc="Subtask to run catalogCalculation plugins on catalog"
)

Definition at line 67 of file forcedPhotImage.py.

◆ coaddName

lsst.meas.base.forcedPhotImage.ForcedPhotImageConfig.coaddName
staticinherited
Initial value:
doc="coadd name: typically one of deep or goodSeeing",
dtype=str,
default="deep",
)

Definition at line 53 of file forcedPhotImage.py.

◆ doApCorr

lsst.meas.base.forcedPhotImage.ForcedPhotImageConfig.doApCorr
staticinherited
Initial value:
dtype=bool,
default=True,
doc="Run subtask to apply aperture corrections"
)

Definition at line 58 of file forcedPhotImage.py.

◆ doApplyUberCal

lsst.meas.base.forcedPhotCcd.ForcedPhotCcdConfig.doApplyUberCal
static
Initial value:
dtype=bool,
doc="Apply meas_mosaic ubercal results to input calexps?",
default=False
)

Definition at line 142 of file forcedPhotCcd.py.

◆ measurement

lsst.meas.base.forcedPhotImage.ForcedPhotImageConfig.measurement
staticinherited
Initial value:
target=ForcedMeasurementTask,
doc="subtask to do forced measurement"
)

Definition at line 49 of file forcedPhotImage.py.

◆ references

lsst.meas.base.forcedPhotImage.ForcedPhotImageConfig.references
staticinherited
Initial value:
target=MultiBandReferencesTask,
doc="subtask to retrieve reference source catalog"
)

Definition at line 45 of file forcedPhotImage.py.

Property Documentation

◆ history

lsst.pex.config.config.Config.history = property(lambda x: x._history)
staticinherited

Definition at line 718 of file config.py.


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