Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
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
Michael Black
OpenXG-RAN
Commits
81deaaa0
Commit
81deaaa0
authored
Oct 04, 2022
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CI: Transform string to float list when reading configuration
parent
f7116a33
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
ci-scripts/main.py
ci-scripts/main.py
+2
-2
ci-scripts/ran.py
ci-scripts/ran.py
+0
-2
No files found.
ci-scripts/main.py
View file @
81deaaa0
...
...
@@ -414,10 +414,10 @@ def GetParametersFromXML(action):
CONTAINERS
.
nb_healthy
[
0
]
=
int
(
string_field
)
string_field
=
test
.
findtext
(
'd_retx_th'
)
if
(
string_field
is
not
None
):
CONTAINERS
.
ran_checkers
[
'd_retx_th'
]
=
string_field
CONTAINERS
.
ran_checkers
[
'd_retx_th'
]
=
[
float
(
x
)
for
x
in
string_field
.
split
(
','
)]
string_field
=
test
.
findtext
(
'u_retx_th'
)
if
(
string_field
is
not
None
):
CONTAINERS
.
ran_checkers
[
'u_retx_th'
]
=
string_field
CONTAINERS
.
ran_checkers
[
'u_retx_th'
]
=
[
float
(
x
)
for
x
in
string_field
.
split
(
','
)]
elif
action
==
'PingFromContainer'
:
string_field
=
test
.
findtext
(
'container_name'
)
...
...
ci-scripts/ran.py
View file @
81deaaa0
...
...
@@ -1155,12 +1155,10 @@ class RANManagement():
#checker
if
(
len
(
dlsch_ulsch_stats
)
!=
0
)
and
(
len
(
checkers
)
!=
0
):
if
'd_retx_th'
in
checkers
:
checkers
[
'd_retx_th'
]
=
[
float
(
x
)
for
x
in
checkers
[
'd_retx_th'
].
split
(
','
)]
dlsch_checker_status
=
list
(
0
for
i
in
checkers
[
'd_retx_th'
])
#status 0 / -1
d_perc_retx
=
list
(
0
for
i
in
checkers
[
'd_retx_th'
])
#results in %
if
'u_retx_th'
in
checkers
:
checkers
[
'u_retx_th'
]
=
[
float
(
x
)
for
x
in
checkers
[
'u_retx_th'
].
split
(
','
)]
ulsch_checker_status
=
list
(
0
for
i
in
checkers
[
'u_retx_th'
])
u_perc_retx
=
list
(
0
for
i
in
checkers
[
'u_retx_th'
])
...
...
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