ATLAS Offline Software
|
Public Member Functions | |
None | __init__ (self) |
Set[int] | defect_ids (self) |
Set[str] | defect_names (self) |
MutableMapping[Union[str, int], Union[str, int]] | defect_id_map (self) |
Set[int] | virtual_defect_ids (self) |
Set[str] | virtual_defect_names (self) |
MutableMapping[Union[str, int], Union[str, int]] | virtual_defect_id_map (self) |
int | defect_chan_as_id (self, Union[str, int] channel, bool primary_only=False) |
List[int] | defect_names_as_ids (self, Iterable[Union[str, int]] channels) |
Tuple[Set[int], Set[str], Mapping[Union[str, int], Union[str, int]]] | get_channels (self) |
Tuple[Set[int], Set[str], Mapping[Union[str, int], Union[str, int]]] | get_virtual_channels (self) |
MutableMapping[Union[str, int], str] | get_channel_descriptions (self, Iterable[Union[str, int]] channels) |
MutableMapping[Union[str, int], str] | get_virtual_channel_descriptions (self, Iterable[Union[str, int]] channels) |
Mapping[Union[str, int], str] | all_defect_descriptions (self) |
None | set_channel_description (self, Union[str, int] channel, str description) |
bool | defect_is_virtual (self, Union[str, int] defect_id) |
Union[str, List[str]] | normalize_defect_names (self, Union[str, Iterable[str]] defect_id) |
Private Member Functions | |
None | _populate_defect_ids (self) |
None | _populate_virtual_defect_ids (self) |
None | _new_defect (self, int did, str dname) |
None | _new_virtual_defect (self, int did, str dname) |
Contains the logic for storing knowledge of which defects exist, and their channel names and IDs
|
private |
Internal function used to keep defect IDs/names uptodate.
|
private |
|
private |
|
private |
int python.ids.DefectsDBIDsNamesMixin.defect_chan_as_id | ( | self, | |
Union[str, int] | channel, | ||
bool | primary_only = False |
||
) |
Returns the defect ID for a virtual defect. Accepts a `channel` as an integer/string and returns it as an integer. Will raise DefectUnknownError if `channel` is an unknown ID or string. This function first checks against non-virtual defects, then virutal defects. Thus virtual-defects are lazily loaded.
Definition at line 203 of file ids.py.
MutableMapping[Union[str,int], Union[str,int]] python.ids.DefectsDBIDsNamesMixin.defect_id_map | ( | self | ) |
Set[int] python.ids.DefectsDBIDsNamesMixin.defect_ids | ( | self | ) |
Gives the set of defect IDs that exist in COOL
bool python.ids.DefectsDBIDsNamesMixin.defect_is_virtual | ( | self, | |
Union[str, int] | defect_id | ||
) |
Gives the set of defect names that exist in COOL
List[int] python.ids.DefectsDBIDsNamesMixin.defect_names_as_ids | ( | self, | |
Iterable[Union[str, int]] | channels | ||
) |
MutableMapping[Union[str, int], str] python.ids.DefectsDBIDsNamesMixin.get_channel_descriptions | ( | self, | |
Iterable[Union[str, int]] | channels | ||
) |
Tuple[Set[int], Set[str], Mapping[Union[str, int], Union[str, int]]] python.ids.DefectsDBIDsNamesMixin.get_channels | ( | self | ) |
Return channel IDs, names, and dict relating the two
MutableMapping[Union[str, int], str] python.ids.DefectsDBIDsNamesMixin.get_virtual_channel_descriptions | ( | self, | |
Iterable[Union[str, int]] | channels | ||
) |
Tuple[Set[int], Set[str], Mapping[Union[str, int], Union[str, int]]] python.ids.DefectsDBIDsNamesMixin.get_virtual_channels | ( | self | ) |
Return channel IDs, names, and dict relating the two
Union[str, List[str]] python.ids.DefectsDBIDsNamesMixin.normalize_defect_names | ( | self, | |
Union[str, Iterable[str]] | defect_id | ||
) |
Returns correct name(s) of defects, given name(s) that possibly differ from the correct ones by case. Raises if an input name doesn't map to any existing defect. You can pass either a string or an iterable object as `defect_id`.
None python.ids.DefectsDBIDsNamesMixin.set_channel_description | ( | self, | |
Union[str, int] | channel, | ||
str | description | ||
) |
MutableMapping[Union[str,int], Union[str,int]] python.ids.DefectsDBIDsNamesMixin.virtual_defect_id_map | ( | self | ) |
Set[int] python.ids.DefectsDBIDsNamesMixin.virtual_defect_ids | ( | self | ) |
Returns the set of existing virtual defect IDs
Returns the set of existing virtual defect names
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |