ATLAS Offline Software
|
Public Member Functions | |
None | __init__ (self) |
None | validate_clauses (self, str clauses) |
None | update_virtual_defect (self, str defect_name, str clauses, Optional[str] comment=None) |
None | rename_defect (self, str defect_name, str new_defect_name) |
int | new_virtual_defect (self, str defect_name, Optional[str] comment, str clauses) |
Set[str] | resolve_primary_defects (self, Iterable[DefectLogic] defect_logics) |
Mapping[str, DefectLogic] | virtual_defect_logics (self) |
def | get_intolerable_defects (self, bool old_primary_only=True, Sequence[str] exclude=['TIGHT', 'IDTIGHT', 'PHYS_.*']) |
Public Attributes | |
logics_tag | |
Private Member Functions | |
None | _update_virtual_defect (self, str defect_name, str clauses, Optional[str] comment=None, Optional[str] tag=None) |
List[DefectLogic] | _resolve_evaluation_order (self, Optional[Iterable[str]] defects=None) |
Mapping[str, DefectLogic] | _get_virtual_defect_logics (self, str tag) |
bool | _virtual_defect_consistency_check (self) |
Private Attributes | |
_virtual_defect_logics | |
_virtual_defect_names | |
_virtual_defect_id_map | |
_virtual_initialized | |
_defect_names | |
_defect_id_map | |
_initialized | |
A DefectsDB mixin for managing virtual defects
Definition at line 40 of file virtual_mixin.py.
None python.virtual_mixin.DefectsDBVirtualDefectsMixin.__init__ | ( | self | ) |
Definition at line 45 of file virtual_mixin.py.
|
private |
Definition at line 233 of file virtual_mixin.py.
|
private |
Returns a list of DefectLogic objects that need to be evaluated, in the correct order for them to be consistent. `defects` should be a list of names
Definition at line 184 of file virtual_mixin.py.
|
private |
Definition at line 63 of file virtual_mixin.py.
|
private |
When called, uses an assertion to check that there are no missing defects. This is a database consistency check which should never be violated (but was when DQDefects was new).
Definition at line 266 of file virtual_mixin.py.
def python.virtual_mixin.DefectsDBVirtualDefectsMixin.get_intolerable_defects | ( | self, | |
bool | old_primary_only = True , |
||
Sequence[str] | exclude = ['TIGHT', 'IDTIGHT', 'PHYS_.*'] |
||
) |
Returns primary defects that are depended on by a virtual defect if old_primary_only == True, only return those depended on by a virtual defect with no _ in the name ignores virtual defects in exclude list accepts regexes in exclude list
Definition at line 248 of file virtual_mixin.py.
int python.virtual_mixin.DefectsDBVirtualDefectsMixin.new_virtual_defect | ( | self, | |
str | defect_name, | ||
Optional[str] | comment, | ||
str | clauses | ||
) |
Create a new virtual defect
Definition at line 149 of file virtual_mixin.py.
None python.virtual_mixin.DefectsDBVirtualDefectsMixin.rename_defect | ( | self, | |
str | defect_name, | ||
str | new_defect_name | ||
) |
Rename a defect (primary or virtual). Will keep data and channel ID. Will fix up all virtual defect dependencies in all tags.
Definition at line 84 of file virtual_mixin.py.
Set[str] python.virtual_mixin.DefectsDBVirtualDefectsMixin.resolve_primary_defects | ( | self, | |
Iterable[DefectLogic] | defect_logics | ||
) |
Determine which primary flags are used for a given list of input `virtual_defect_names`.
Definition at line 209 of file virtual_mixin.py.
None python.virtual_mixin.DefectsDBVirtualDefectsMixin.update_virtual_defect | ( | self, | |
str | defect_name, | ||
str | clauses, | ||
Optional[str] | comment = None |
||
) |
Definition at line 56 of file virtual_mixin.py.
None python.virtual_mixin.DefectsDBVirtualDefectsMixin.validate_clauses | ( | self, | |
str | clauses | ||
) |
Definition at line 49 of file virtual_mixin.py.
Mapping[str, DefectLogic] python.virtual_mixin.DefectsDBVirtualDefectsMixin.virtual_defect_logics | ( | self | ) |
Returns all virtual defects in the form {"defect_name" : DefectLogic()} for the tag DefectDB was constructed on.
Definition at line 221 of file virtual_mixin.py.
|
private |
Definition at line 109 of file virtual_mixin.py.
|
private |
Definition at line 108 of file virtual_mixin.py.
|
private |
Definition at line 110 of file virtual_mixin.py.
|
private |
Definition at line 103 of file virtual_mixin.py.
|
private |
Definition at line 46 of file virtual_mixin.py.
|
private |
Definition at line 102 of file virtual_mixin.py.
|
private |
Definition at line 105 of file virtual_mixin.py.
python.virtual_mixin.DefectsDBVirtualDefectsMixin.logics_tag |
Definition at line 59 of file virtual_mixin.py.