lsst.dax.apdb gbebdf9febd+35dc457219
|
Public Member Functions | |
def | __init__ (self, str schema_file, str schema_name="ApdbSchema") |
Union[type, str] | column_dtype (self, Type[felis.types.FelisType] felis_type) |
Public Attributes | |
tableSchemas | |
Class for management of APDB schema. Attributes ---------- tableSchemas : `dict` Maps table name to `TableDef` instance. Parameters ---------- schema_file : `str` Name of the YAML schema file. schema_name : `str`, optional Name of the schema in YAML files.
Union[type, str] lsst.dax.apdb.apdbSchema.ApdbSchema.column_dtype | ( | self, | |
Type[felis.types.FelisType] | felis_type | ||
) |
Return Pandas data type for a given Felis column type. Parameters ---------- felis_type : `type` Felis type, on of the classes defined in `felis.types` module. Returns ------- column_dtype : `type` or `str` Type that can be used for columns in Pandas. Raises ------ TypeError Raised if type is cannot be handled.