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
306451d3
Unverified
Commit
306451d3
authored
Sep 26, 2024
by
Jakob Görgen
Browse files
fixed return filter object + removed useless executor param
parent
d260790e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
experiments/simbricks/orchestration/runtime_new/simulation_executor.py
...imbricks/orchestration/runtime_new/simulation_executor.py
+1
-1
experiments/simbricks/orchestration/simulation/base.py
experiments/simbricks/orchestration/simulation/base.py
+1
-1
No files found.
experiments/simbricks/orchestration/runtime_new/simulation_executor.py
View file @
306451d3
...
...
@@ -94,7 +94,7 @@ class ExperimentBaseRunner(abc.ABC):
if
len
(
wait_socks
)
>
0
:
if
self
.
_verbose
:
print
(
f
'
{
self
.
_simulation
.
name
}
: waiting for sockets
{
name
}
'
)
await
self
.
_instantiation
.
wait_for_sockets
(
executor
=
executor
,
sockets
=
wait_socks
)
await
self
.
_instantiation
.
wait_for_sockets
(
sockets
=
wait_socks
)
if
self
.
_verbose
:
print
(
f
'
{
self
.
_simulation
.
name
}
: waited successfully for sockets
{
name
}
'
)
...
...
experiments/simbricks/orchestration/simulation/base.py
View file @
306451d3
...
...
@@ -80,7 +80,7 @@ class Simulator(utils_base.IdObj):
sockets
:
list
[
inst_base
.
Socket
],
filter_type
:
inst_base
.
SockType
=
inst_base
.
SockType
.
LISTEN
,
)
->
list
[
inst_base
.
Socket
]:
res
=
filter
(
lambda
sock
:
sock
.
_type
==
filter_type
,
sockets
)
res
=
list
(
filter
(
lambda
sock
:
sock
.
_type
==
filter_type
,
sockets
)
)
return
res
@
staticmethod
...
...
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