LSSTApplications  18.1.0
LSSTDataManagementBasePackage
Classes | Functions
lsst.afw.table.schema.schemaContinued Namespace Reference

Classes

class  Field
 
class  Key
 
class  Schema
 
class  SchemaItem
 

Functions

def makeSchemaFromFields (fields)
 

Function Documentation

◆ makeSchemaFromFields()

def lsst.afw.table.schema.schemaContinued.makeSchemaFromFields (   fields)
Create a Schema from a sequence of Fields. For pickle support.

Parameters
----------
fields : `tuple` ['lsst.afw.table.Field']
    The fields to construct the new Schema from.

Returns
-------
schema : `lsst.afw.table.Schema`
    The constructed Schema.

Definition at line 213 of file schemaContinued.py.

213 def makeSchemaFromFields(fields):
214  """Create a Schema from a sequence of Fields. For pickle support.
215 
216  Parameters
217  ----------
218  fields : `tuple` ['lsst.afw.table.Field']
219  The fields to construct the new Schema from.
220 
221  Returns
222  -------
223  schema : `lsst.afw.table.Schema`
224  The constructed Schema.
225  """
226  schema = Schema()
227  for field in fields:
228  schema.addField(field)
229  return schema