lsst.afw g3a5ebb7d8a+28b83bf6a5
Loading...
Searching...
No Matches
lsst.afw.table._schema Namespace Reference

Classes

class  Key
class  Field
class  SchemaItem
class  Schema

Functions

 _registerInstantiations (abc, types)
 makeSchemaFromFields (fields)

Variables

dict _dtypes

Function Documentation

◆ _registerInstantiations()

_registerInstantiations ( abc,
types )
protected
Iterate over a private dict (filled by template instantiations in C++)
to register template instantiations a TemplateMeta ABCs.

If an entry for the type string exists in _dtypes, we use that instead of
the string as the key, and use the string as an alias.

Definition at line 61 of file _schema.py.

◆ makeSchemaFromFields()

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 246 of file _schema.py.

Variable Documentation

◆ _dtypes

dict lsst.afw.table._schema._dtypes
protected
Initial value:
= {
"String": str,
"B": np.uint8,
"U": np.uint16,
"I": np.int32,
"L": np.int64,
"F": np.float32,
"D": np.float64,
"Angle": lsst.geom.Angle,
}

Definition at line 37 of file _schema.py.