Yaml2Archiving Config
Config
- yaml2archiving.v1.config.check_filters(config)[source]
Check that device filters are sane, else report errors
- yaml2archiving.v1.config.format_filters(filters)[source]
Filters may be given as a sigle string or as a list of strings.
- yaml2archiving.v1.config.get_class_devices(db: tango.Database, clss: str, device: List[str] | str | None = None, server: List[str] | str = '*') List[str][source]
Returns a list of devices for a Class. Also can apply different filters i.e device or server.
- yaml2archiving.v1.config.get_desired_attributes(tango_host: str, configs, db: tango.Database | None = None) Dict[str, Any][source]
Based on a given config, get the list of attributes affected.
- yaml2archiving.v1.config.get_tango_database(tango_host)[source]
Get connection to Tango DB, exit with error if it fails
- yaml2archiving.v1.config.load_configuration(filename: str)[source]
Reads a YAML configuration file and combines it with any defaults.
Returns a dict containing the complete configuration.
Raises RuntimeError on any fatal errors.