DataTable
- class DataTable(value)[source]
Bases:
SuperEnum- __init__(*args, **kwds)
Methods
keys()Returns a list of all enum names.
values()Returns a list of all enum values.
get_index_from_value(value)Gets the index of an enum member by its value.
get_index_from_string(string)Gets the index of an enum member by its string value.
Attributes
- EVENTS = 'EVENTS'
- SESSIONS_SUMMARY = 'SESSIONS_SUMMARY'
- SUBJECTS = 'SUBJECTS'
- WATER_CALIBRATION = 'WATER_CALIBRATION'
- SOUND_CALIBRATION = 'SOUND_CALIBRATION'
- TEMPERATURES = 'TEMPERATURES'
- SESSION = 'SESSION'
- SESSION_RAW = 'SESSION_RAW'
- OLD_SESSION = 'OLD_SESSION'
- OLD_SESSION_RAW = 'OLD_SESSION_RAW'
- classmethod keys() list[str]
Returns a list of all enum names.
- Returns:
usage: [e.name for e in cls]
- Return type:
list[str]
- classmethod values() list[Any]
Returns a list of all enum values.
- Returns:
usage: [e.value for e in cls]
- Return type:
list[Any]
- classmethod get_index_from_value(value: Enum) int
Gets the index of an enum member by its value.
- Parameters:
value (Enum) – The enum member or value.
- Returns:
The index.
- Return type:
int
- classmethod get_index_from_string(string: str) int
Gets the index of an enum member by its string value.
- Parameters:
string (str) – The string string.
- Returns:
The index.
- Return type:
int