lsst.afw  15.0-18-g5f205baaa
Public Member Functions | List of all members
lsst.afw.table.schemaMapper.schemaMapperContinued.SchemaMapper Class Reference

Public Member Functions

def addOutputField (self, field, type=None, doc=None, units="", size=None, doReplace=False, parse_strict="raise")
 
def addMapping (self, input, output=None, doReplace=True)
 

Detailed Description

Definition at line 36 of file schemaMapperContinued.py.

Member Function Documentation

◆ addMapping()

def lsst.afw.table.schemaMapper.schemaMapperContinued.SchemaMapper.addMapping (   self,
  input,
  output = None,
  doReplace = True 
)
Add a mapped field to the output schema.

Parameters
----------
input : Key
    A Key from the input schema whose values will be mapped to the new
    field.
output : str,Field
    A Field object that describes the new field to be added to the
    output schema, or the name of the field (with documentation and
    units copied from the input schema).  May be None to copy everything
    from the input schema.
doReplace : bool
    If a field with this name already exists in the output schema,
    replace it instead of raising pex.exceptions.InvalidParameterError.

Definition at line 68 of file schemaMapperContinued.py.

◆ addOutputField()

def lsst.afw.table.schemaMapper.schemaMapperContinued.SchemaMapper.addOutputField (   self,
  field,
  type = None,
  doc = None,
  units = "",
  size = None,
  doReplace = False,
  parse_strict = "raise" 
)
Add an un-mapped field to the output Schema.

Parameters
----------
field : str,Field
    The string name of the Field, or a fully-constructed Field object.
    If the latter, all other arguments besides doReplace are ignored.
type\n : str,type
    The type of field to create.  Valid types are the keys of the
    afw.table.Field dictionary.
doc : str
    Documentation for the field.
unit : str
    Units for the field, or an empty string if unitless.
size : int
    Size of the field; valid for string and array fields only.
doReplace : bool
    If a field with this name already exists, replace it instead of
    raising pex.exceptions.InvalidParameterError.
parse_strict : str
    One of 'raise' (default), 'warn', or 'strict', indicating how to
    handle unrecognized unit strings.  See also astropy.units.Unit.

Definition at line 39 of file schemaMapperContinued.py.


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