Skip to content

Commit

Permalink
memHierarchy_memHA: convert RE to raw string
Browse files Browse the repository at this point in the history
  • Loading branch information
jmlapre committed May 9, 2024
1 parent d900a0c commit dcb7deb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from sst_unittest import *
from sst_unittest_support import *
import os.path
import re

################################################################################
# Code to support a single instance module initialize, must be called setUp method
Expand Down Expand Up @@ -283,7 +284,7 @@ def _remove_lines_cleanup_file(self, remove_strs, in_file, out_file = None):
# Currently handles console output format only and integer statistic formats
# Stats are parsed into [component_name, stat_name, sum, sumSQ, count, min, max]
def _is_stat(self, line):
cons_accum = re.compile(' ([\w.]+)\.(\w+) : Accumulator : Sum.(\w+) = (\d+); SumSQ.\w+ = (\d+); Count.\w+ = (\d+); Min.\w+ = (\d+); Max.\w+ = (\d+);')
cons_accum = re.compile(r' ([\w.]+)\.(\w+) : Accumulator : Sum.(\w+) = (\d+); SumSQ.\w+ = (\d+); Count.\w+ = (\d+); Min.\w+ = (\d+); Max.\w+ = (\d+);')
m = cons_accum.match(line)
if m == None:
return None
Expand Down

0 comments on commit dcb7deb

Please sign in to comment.