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:
BaseModelBase 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
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#
- uri
ResourcePathExpression Location of the file containing serialized configuration in YAML format.
Returns#
- config
ApdbConfig Apdb configuration object.
- uri
- save(uri: str | ParseResult | ResourcePath | Path) None#
Save configuration to a specified location in YAML format.
Parameters#
- uri
ResourcePathExpression Location to save configuration
- uri