in src/local_gpu_verifier/src/verifier/rim/__init__.py [0:0]
def get_colloquial_version(self):
""" Parses RIM to return the driver/vbios version which is present in the RIM as
colloquial version.
Raises:
ElementNotFoundError: Raises exception if the Meta element is not present.
EmptyElementError: Raises exception if the colloquialVersion field is empty.
Returns:
[str]: The colloquialVersion attribute of Meta element.
"""
Meta = RIM.get_element(self.root, "Meta")
if Meta is None:
err_msg = "\t\tNo Meta element found in the RIM."
info_log.error(err_msg)
raise ElementNotFoundError(err_msg)
version = Meta.attrib['colloquialVersion']
if version is None or version == '':
err_msg = "Driver version not found in the RIM."
info_log.error(err_msg)
raise EmptyElementError(err_msg)
event_log.debug(f'The driver version in the RIM file is {version}')
version = version.lower()
return version