Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ycai
simbricks
Commits
bf5c4aff
"docs/vscode:/vscode.git/clone" did not exist on "cbe9fe2cdb745ca70dfde56e6863bf4e70d92241"
Unverified
Commit
bf5c4aff
authored
Jan 21, 2025
by
Jakob Görgen
Browse files
symphony/orchestration: system allow to set latencies for all channels
parent
90e4b61a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
symphony/orchestration/simbricks/orchestration/system/base.py
...hony/orchestration/simbricks/orchestration/system/base.py
+10
-6
No files found.
symphony/orchestration/simbricks/orchestration/system/base.py
View file @
bf5c4aff
...
...
@@ -76,13 +76,17 @@ class System(util_base.IdObj):
for
chan
in
channels
:
chan
.
set_latency
(
amount
,
ratio
)
def
latencies
(
self
,
amount
:
int
,
ratio
:
util_base
.
Time
,
channel_type
:
tp
.
Any
)
->
None
:
relevant_channels
=
list
(
filter
(
lambda
chan
:
util_base
.
check_type
(
chan
,
channel_type
),
self
.
_all_channels
.
values
(),
def
latencies
(
self
,
amount
:
int
,
ratio
:
util_base
.
Time
,
channel_type
:
tp
.
Any
|
None
=
None
)
->
None
:
relevant_channels
=
self
.
_all_channels
if
channel_type
:
relevant_channels
=
list
(
filter
(
lambda
chan
:
util_base
.
check_type
(
chan
,
channel_type
),
self
.
_all_channels
.
values
(),
)
)
)
System
.
set_latencies
(
relevant_channels
,
amount
,
ratio
)
def
toJSON
(
self
)
->
dict
:
...
...
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