Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
X
xlte
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
2
Merge Requests
2
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
Kirill Smelkov
xlte
Commits
e6b5e156
Commit
e6b5e156
authored
Mar 27, 2023
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
py2: *: No keyword argument after *argv
This feature is not supported on python2 -> emulate it by hand.
parent
5d52e1fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
amari/drb_test.py
amari/drb_test.py
+10
-3
No files found.
amari/drb_test.py
View file @
e6b5e156
...
...
@@ -37,7 +37,9 @@ class Etx:
# UE represents one entry about an UE in ue_get[stats].ue_list .
class
UE
:
def
__init__
(
ue
,
ue_id
,
tx
,
retx
,
*
etxv
,
ri
=
1
):
def
__init__
(
ue
,
ue_id
,
tx
,
retx
,
*
etxv
,
**
kw
):
ri
=
kw
.
pop
(
'ri'
,
1
)
assert
not
kw
for
_
in
etxv
:
assert
isinstance
(
_
,
Etx
)
ue
.
ue_id
=
ue_id
...
...
@@ -51,7 +53,10 @@ class UE:
# For easier testing and contrary to _Sampler collected samples are returned as
# a whole from final get, not incrementally.
class
tSampler
:
def
__init__
(
t
,
*
uev
,
use_bitsync
=
False
,
use_ri
=
False
):
def
__init__
(
t
,
*
uev
,
**
kw
):
use_bitsync
=
kw
.
pop
(
'use_bitsync'
,
False
)
use_ri
=
kw
.
pop
(
'use_ri'
,
False
)
assert
not
kw
t
.
tstats
=
_tUEstats
()
ue_stats0
,
stats0
=
t
.
tstats
.
next
(
0
,
*
uev
)
t
.
sampler
=
_Sampler
(
'zz'
,
ue_stats0
,
stats0
,
use_bitsync
=
use_bitsync
,
use_ri
=
use_ri
)
...
...
@@ -160,7 +165,9 @@ def test_Sampler1():
# parts of the Sampler in how single flow is divided into samples. The other
# tests verify how Sampler handles other aspects - e.g. multiple erabs,
# multiple qci, etc...
def
_
(
*
tx_statsv
,
bitsync
=
None
):
# -> []Sample
def
_
(
*
tx_statsv
,
**
kw
):
# -> []Sample
bitsync
=
kw
.
pop
(
'bitsync'
,
None
)
assert
not
kw
def
b
(
bitsync
):
t
=
tSampler
(
use_bitsync
=
bitsync
)
for
(
dt_tti
,
tx_bytes
,
tx
,
retx
)
in
tx_statsv
:
...
...
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