ait.core.evr module¶
AIT Event Record (EVR) Reader
The ait.core.evr module is used to read the EVRs from a YAML file.
-
class
ait.core.evr.
EVRDefn
(*args, **kwargs)¶ Bases:
ait.core.json.SlotSerializer
,object
-
__init__
(*args, **kwargs)¶ Creates a new EVR Definition.
-
format_message
(evr_hist_data)¶ Format EVR message with EVR data
Given a byte array of EVR data, format the EVR’s message attribute printf format strings and split the byte array into appropriately sized chunks. Supports most format strings containing length and type fields.
- Args:
- evr_hist_data: A bytearray of EVR data. Bytes are expected to be in
- MSB ordering.
Example formatting:
# This is the character '!', string 'Foo', and int '4279317316' bytearray([0x21, 0x46, 0x6f, 0x6f, 0x00, 0xff, 0x11, 0x33, 0x44])
- Returns:
- The EVR’s message string formatted with the EVR data or the unformatted EVR message string if there are no valid format strings present in it.
- Raises:
- ValueError: When the bytearray cannot be fully processed with the
- specified format strings. This is usually a result of the expected data length and the byte array length not matching.
-
code
¶
-
desc
¶
-
message
¶
-
name
¶
-
-
class
ait.core.evr.
EVRDict
(*args, **kwargs)¶ Bases:
dict
-
__init__
(*args, **kwargs)¶ Initialize self. See help(type(self)) for accurate signature.
-
add
(defn)¶
-
load
(content)¶
-
toJSON
()¶
-
-
ait.core.evr.
YAMLCtor_EVRDefn
(loader, node)¶
-
ait.core.evr.
getDefaultDict
(reload=False)¶
-
ait.core.evr.
getDefaultDictFilename
()¶
-
ait.core.evr.
getDefaultEVRs
()¶
-
ait.core.evr.
getDefaultSchema
()¶