Commit 9374eda0 authored by hardy's avatar hardy

fix typo in file handlers

parent 60a91cc2
...@@ -1007,9 +1007,9 @@ class RANManagement(): ...@@ -1007,9 +1007,9 @@ class RANManagement():
else: else:
logging.debug("NR Stats files for RT analysis not found") logging.debug("NR Stats files for RT analysis not found")
if stat_files_present: if stat_files_present:
nrL1_stat = open('./nrL1_stats.log', 'r') nrL1_stats = open('./nrL1_stats.log', 'r')
nrMAC_stat = open('./nrMAC_stats.log', 'r') nrMAC_stats = open('./nrMAC_stats.log', 'r')
for line in nrL1_stat.readlines(): for line in nrL1_stats.readlines():
for k in rt_keys: for k in rt_keys:
result = re.search(k, line) result = re.search(k, line)
if result is not None: if result is not None:
...@@ -1017,7 +1017,7 @@ class RANManagement(): ...@@ -1017,7 +1017,7 @@ class RANManagement():
tmp=re.match(rf'^.*?(\b{k}\b.*)',line.rstrip()) #from python 3.6 we can use literal string interpolation for the variable k, using rf' in the regex tmp=re.match(rf'^.*?(\b{k}\b.*)',line.rstrip()) #from python 3.6 we can use literal string interpolation for the variable k, using rf' in the regex
if tmp!=None: if tmp!=None:
real_time_stats[k]=tmp.group(1) real_time_stats[k]=tmp.group(1)
for line in nrMAC_stat.readlines(): for line in nrMAC_stats.readlines():
for k in rt_keys: for k in rt_keys:
result = re.search(k, line) result = re.search(k, line)
if result is not None: if result is not None:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment