readSdmSchemaFile

lsst.ap.association.readSdmSchemaFile(schemaFile: str, schemaName: str = 'ApdbSchema')

Read a schema file in YAML format.

Parameters:
schemaFilestr

Fully specified path to the file to be read.

schemaNamestr, optional

Name of the table of schemas to read from the file.

Returns:
schemaTabledict[str, schema_model.Table]

A dict of the schemas in the given table defined in the specified file.

Raises:
ValueError

If the schema file can’t be parsed.