atef.config.PVConfiguration
- class atef.config.PVConfiguration(name: str | None = None, description: str | None = None, tags: ~typing.List[str] | None = None, by_pv: ~typing.Dict[str, ~typing.List[~atef.check.Comparison]] = <factory>, shared: ~typing.List[~atef.check.Comparison] = <factory>)[source]
A configuration that is built to check live EPICS PVs.
- Attributes:
- description
- name
- tags
Methods
children()Return children of this group, as a tree view might expect
replace_comparison(old_comp, new_comp[, ...])Replace
old_compwithnew_compin this dataclass, wherever it is.move_comparison
Methods
- __init__(name: str | None = None, description: str | None = None, tags: ~typing.List[str] | None = None, by_pv: ~typing.Dict[str, ~typing.List[~atef.check.Comparison]] = <factory>, shared: ~typing.List[~atef.check.Comparison] = <factory>) None
- children() List[Comparison][source]
Return children of this group, as a tree view might expect
- replace_comparison(old_comp: Comparison, new_comp: Comparison, comp_attrs: List[str] | None = None) None[source]
Replace
old_compwithnew_compin this dataclass, wherever it is. Looks throughshared, then any of the attributes incomp_attrs- Parameters:
- old_compComparison
Comparison to be replaced
- new_compComparison
Comparison to replace
old_compwith- comp_attrsOptional[List[str]], optional
Attribute names in the dataclass to check, by default [‘by_pv’] if no value is provided
Attributes
- by_pv: Dict[str, List[Comparison]]
PV name to comparison list.
Comparisons to be run on all PVs in the
by_pvdictionary.