LSST Applications g0265f82a02+0e5473021a,g02d81e74bb+bd2ed33bd6,g1470d8bcf6+de7501a2e0,g14a832a312+ff425fae3c,g2079a07aa2+86d27d4dc4,g2305ad1205+91a32aca49,g295015adf3+762506a1ad,g2bbee38e9b+0e5473021a,g337abbeb29+0e5473021a,g3ddfee87b4+c34e8be1fa,g487adcacf7+5fae3daba8,g50ff169b8f+96c6868917,g52b1c1532d+585e252eca,g591dd9f2cf+ea1711114f,g5a732f18d5+53520f316c,g64a986408d+bd2ed33bd6,g858d7b2824+bd2ed33bd6,g8a8a8dda67+585e252eca,g99cad8db69+016a06b37a,g9ddcbc5298+9a081db1e4,ga1e77700b3+15fc3df1f7,ga8c6da7877+ef4e3a5875,gb0e22166c9+60f28cb32d,gb6a65358fc+0e5473021a,gba4ed39666+c2a2e4ac27,gbb8dafda3b+09e12c87ab,gc120e1dc64+bc2e06c061,gc28159a63d+0e5473021a,gcf0d15dbbd+c34e8be1fa,gdaeeff99f8+f9a426f77a,ge6526c86ff+508d0e0a30,ge79ae78c31+0e5473021a,gee10cc3b42+585e252eca,gf18bd8381d+8d59551888,gf1cff7945b+bd2ed33bd6,w.2024.16
LSST Data Management Base Package
Loading...
Searching...
No Matches
Classes | Functions
lsst.afw.table._schemaMapper Namespace Reference

Classes

class  SchemaMapper
 

Functions

 makeSchemaMapper (input, output, mappings)
 

Function Documentation

◆ makeSchemaMapper()

lsst.afw.table._schemaMapper.makeSchemaMapper ( input,
output,
mappings )
Build a mapper from two Schemas and the mapping between them.
For pickle support.

Parameters
----------
input : `lsst.afw.table.Schema`
    The input schema for the mapper.
output : `lsst.afw.table.Schema`
    The output schema for the mapper.
mappings : `dict` [`lsst.afw.table.Key`, `lsst.afw.table.Key`]
    The mappings to define between the input and output schema.

Returns
-------
mapper : `lsst.afw.table.SchemaMapper`
    The constructed SchemaMapper.

Definition at line 138 of file _schemaMapper.py.

138def makeSchemaMapper(input, output, mappings):
139 """Build a mapper from two Schemas and the mapping between them.
140 For pickle support.
141
142 Parameters
143 ----------
144 input : `lsst.afw.table.Schema`
145 The input schema for the mapper.
146 output : `lsst.afw.table.Schema`
147 The output schema for the mapper.
148 mappings : `dict` [`lsst.afw.table.Key`, `lsst.afw.table.Key`]
149 The mappings to define between the input and output schema.
150
151 Returns
152 -------
153 mapper : `lsst.afw.table.SchemaMapper`
154 The constructed SchemaMapper.
155 """
156 mapper = SchemaMapper(input, output)
157 for key, value in mappings.items():
158 mapper.addMapping(key, value)
159 return mapper