Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG UE
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG UE
Commits
533b601a
Commit
533b601a
authored
Nov 04, 2021
by
hardy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix typo in file handlers
parent
9468f92b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
ci-scripts/ran.py
ci-scripts/ran.py
+4
-4
No files found.
ci-scripts/ran.py
View file @
533b601a
...
...
@@ -1007,9 +1007,9 @@ class RANManagement():
else
:
logging
.
debug
(
"NR Stats files for RT analysis not found"
)
if
stat_files_present
:
nrL1_stat
=
open
(
'./nrL1_stats.log'
,
'r'
)
nrMAC_stat
=
open
(
'./nrMAC_stats.log'
,
'r'
)
for
line
in
nrL1_stat
.
readlines
():
nrL1_stat
s
=
open
(
'./nrL1_stats.log'
,
'r'
)
nrMAC_stat
s
=
open
(
'./nrMAC_stats.log'
,
'r'
)
for
line
in
nrL1_stat
s
.
readlines
():
for
k
in
rt_keys
:
result
=
re
.
search
(
k
,
line
)
if
result
is
not
None
:
...
...
@@ -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
if
tmp
!=
None
:
real_time_stats
[
k
]
=
tmp
.
group
(
1
)
for
line
in
nrMAC_stat
.
readlines
():
for
line
in
nrMAC_stat
s
.
readlines
():
for
k
in
rt_keys
:
result
=
re
.
search
(
k
,
line
)
if
result
is
not
None
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment