From 30752d1547491342d2164098483f0e62410023f1 Mon Sep 17 00:00:00 2001 From: vedithal-amd Date: Tue, 11 Mar 2025 13:34:48 -0400 Subject: [PATCH] selective counter bugfix (#602) Allow block filter of the form xx.x --- src/argparser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/argparser.py b/src/argparser.py index ce879a2905..508981ed29 100644 --- a/src/argparser.py +++ b/src/argparser.py @@ -190,7 +190,7 @@ Examples: def validate_block(value): # Metric id regex, for example, 10, 4, 4.3, 4.32 # Dont allow more than two digits after decimal point - metric_id_pattern = re.compile(r"^\d+$|^\d\.\d$|^\d+\.\d\d$") + metric_id_pattern = re.compile(r"^\d+$|^\d+\.\d$|^\d+\.\d\d$") # Allow only the following hardware blocks hardware_block_pattern = re.compile(r"^(SQ|SQC|TA|TD|TCP|TCC|SPI|CPC|CPF)$") if metric_id_pattern.match(value):