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
c73496c5
Commit
c73496c5
authored
Nov 05, 2020
by
Antoine Kaufmann
Browse files
experiments: create all missing directories
parent
b007e47b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
experiments/modes/runtime.py
experiments/modes/runtime.py
+2
-0
No files found.
experiments/modes/runtime.py
View file @
c73496c5
...
@@ -38,6 +38,7 @@ class LocalSimpleRuntime(Runtime):
...
@@ -38,6 +38,7 @@ class LocalSimpleRuntime(Runtime):
def
start
(
self
):
def
start
(
self
):
for
run
in
self
.
runnable
:
for
run
in
self
.
runnable
:
pathlib
.
Path
(
run
.
env
.
workdir
).
mkdir
(
parents
=
True
,
exist_ok
=
True
)
pathlib
.
Path
(
run
.
env
.
workdir
).
mkdir
(
parents
=
True
,
exist_ok
=
True
)
pathlib
.
Path
(
run
.
env
.
cpdir
).
mkdir
(
parents
=
True
,
exist_ok
=
True
)
run
.
output
=
exp
.
run_exp_local
(
run
.
experiment
,
run
.
env
,
run
.
output
=
exp
.
run_exp_local
(
run
.
experiment
,
run
.
env
,
verbose
=
self
.
verbose
)
verbose
=
self
.
verbose
)
...
@@ -72,6 +73,7 @@ class LocalParallelRuntime(Runtime):
...
@@ -72,6 +73,7 @@ class LocalParallelRuntime(Runtime):
async
def
do_run
(
self
,
run
):
async
def
do_run
(
self
,
run
):
''' actually starts a run '''
''' actually starts a run '''
pathlib
.
Path
(
run
.
env
.
workdir
).
mkdir
(
parents
=
True
,
exist_ok
=
True
)
pathlib
.
Path
(
run
.
env
.
workdir
).
mkdir
(
parents
=
True
,
exist_ok
=
True
)
pathlib
.
Path
(
run
.
env
.
cpdir
).
mkdir
(
parents
=
True
,
exist_ok
=
True
)
await
run
.
experiment
.
prepare
(
run
.
env
,
verbose
=
self
.
verbose
)
await
run
.
experiment
.
prepare
(
run
.
env
,
verbose
=
self
.
verbose
)
print
(
'starting run '
,
run
.
name
())
print
(
'starting run '
,
run
.
name
())
...
...
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