ApdbConfig#

class lsst.dax.apdb.ApdbConfig(*, schema_file: str = 'resource://lsst.sdm.schemas/apdb.yaml', ss_schema_file: str = 'resource://lsst.sdm.schemas/sso.yaml', schema_name: str = 'ApdbSchema', read_sources_months: int = 12, read_forced_sources_months: int = 12, enable_replica: bool = False, replica_chunk_seconds: int = 600)#

Bases: BaseModel

Base class for APDB configuration types.

This class contains a set of parameters that are common to all implementations. Implementation-specific parameters are declared in sub-classes.

Attributes Summary

model_config

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

Methods Summary

from_uri(uri)

Load configuration object from external file.

save(uri)

Save configuration to a specified location in YAML format.

Attributes Documentation

model_config: ClassVar[ConfigDict] = {}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

Methods Documentation

classmethod from_uri(uri: str | ParseResult | ResourcePath | Path) ApdbConfig#

Load configuration object from external file.

Parameters#

uriResourcePathExpression

Location of the file containing serialized configuration in YAML format.

Returns#

configApdbConfig

Apdb configuration object.

save(uri: str | ParseResult | ResourcePath | Path) None#

Save configuration to a specified location in YAML format.

Parameters#

uriResourcePathExpression

Location to save configuration