revrt.utilities.parsing.parse_comparison_values#

parse_comparison_values(comparison_values)[source]#

Parse comparison text into an operator and threshold

Parameters:

comparison_values (str) – Comparison definition describing barrier cells.

Returns:

str, float – Tuple of operator and threshold value. The operator is one of the following: ‘ne’, ‘gt’, ‘ge’, ‘lt’, ‘le’, ‘eq’. The threshold is a float value.

Raises:

revrtConfigurationError – If the comparison_values string does not match the expected pattern of a comparison operator followed by a number.