LSSTApplications  18.1.0
LSSTDataManagementBasePackage
Classes | Functions
lsst.pex.config.config Namespace Reference

Classes

class  Config
 
class  ConfigMeta
 
class  Field
 
class  FieldValidationError
 
class  RecordingImporter
 

Functions

def unreduceConfig (cls, stream)
 

Function Documentation

◆ unreduceConfig()

def lsst.pex.config.config.unreduceConfig (   cls,
  stream 
)
Create a `~lsst.pex.config.Config` from a stream.

Parameters
----------
cls : `lsst.pex.config.Config`-type
    A `lsst.pex.config.Config` type (not an instance) that is instantiated
    with configurations in the ``stream``.
stream : file-like object, `str`, or compiled string
    Stream containing configuration override code.

Returns
-------
config : `lsst.pex.config.Config`
    Config instance.

See also
--------
lsst.pex.config.Config.loadFromStream

Definition at line 1353 of file config.py.

1353 def unreduceConfig(cls, stream):
1354  """Create a `~lsst.pex.config.Config` from a stream.
1355 
1356  Parameters
1357  ----------
1358  cls : `lsst.pex.config.Config`-type
1359  A `lsst.pex.config.Config` type (not an instance) that is instantiated
1360  with configurations in the ``stream``.
1361  stream : file-like object, `str`, or compiled string
1362  Stream containing configuration override code.
1363 
1364  Returns
1365  -------
1366  config : `lsst.pex.config.Config`
1367  Config instance.
1368 
1369  See also
1370  --------
1371  lsst.pex.config.Config.loadFromStream
1372  """
1373  config = cls()
1374  config.loadFromStream(stream)
1375  return config