CIME.XML.machines.match_value_by_attribute_regex
- CIME.XML.machines.match_value_by_attribute_regex(element, attribute_name, value)[source]
Checks element contains attribute whose pattern matches a value.
If the element does not have the attribute it’s considered a match.
- Args:
element (CIME.XML.generic_xml._Element): XML element to check attributes. attribute_name (str): Name of attribute with regex value. value (str): Value that is matched against attributes regex value.
- Returns:
bool: True if attribute regex matches the target value otherwise False.