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
6833b906
"vscode:/vscode.git/clone" did not exist on "614a7b1bb09acdd9ad8b856465d12ae82643bd76"
Commit
6833b906
authored
Aug 05, 2022
by
Jonas Kaufmann
Committed by
Antoine Kaufmann
Aug 23, 2022
Browse files
experiment runners: fix experiment not passed in super call
parent
6d80b901
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
experiments/simbricks/experiments.py
experiments/simbricks/experiments.py
+2
-2
No files found.
experiments/simbricks/experiments.py
View file @
6833b906
...
@@ -316,7 +316,7 @@ class ExperimentBaseRunner(ABC):
...
@@ -316,7 +316,7 @@ class ExperimentBaseRunner(ABC):
class
ExperimentSimpleRunner
(
ExperimentBaseRunner
):
class
ExperimentSimpleRunner
(
ExperimentBaseRunner
):
"""Simple experiment runner with just one executor."""
"""Simple experiment runner with just one executor."""
def
__init__
(
self
,
executor
:
Executor
,
exp
:
Experiment
,
*
args
,
**
kwargs
):
def
__init__
(
self
,
executor
:
Executor
,
*
args
,
**
kwargs
):
self
.
executor
=
executor
self
.
executor
=
executor
super
().
__init__
(
*
args
,
**
kwargs
)
super
().
__init__
(
*
args
,
**
kwargs
)
...
@@ -329,7 +329,7 @@ class ExperimentDistributedRunner(ExperimentBaseRunner):
...
@@ -329,7 +329,7 @@ class ExperimentDistributedRunner(ExperimentBaseRunner):
def
__init__
(
self
,
execs
,
exp
:
DistributedExperiment
,
*
args
,
**
kwargs
):
def
__init__
(
self
,
execs
,
exp
:
DistributedExperiment
,
*
args
,
**
kwargs
):
self
.
execs
=
execs
self
.
execs
=
execs
super
().
__init__
(
*
args
,
**
kwargs
)
super
().
__init__
(
exp
,
*
args
,
**
kwargs
)
self
.
exp
=
exp
# overrides the type in the base class
self
.
exp
=
exp
# overrides the type in the base class
assert
self
.
exp
.
num_hosts
<=
len
(
execs
)
assert
self
.
exp
.
num_hosts
<=
len
(
execs
)
...
...
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