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
aa402425
Commit
aa402425
authored
Sep 22, 2024
by
Hejing Li
Browse files
fix cpdir
parent
792075ed
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
experiments/run_new.py
experiments/run_new.py
+1
-1
experiments/simbricks/orchestration/instantiation/base.py
experiments/simbricks/orchestration/instantiation/base.py
+1
-2
No files found.
experiments/run_new.py
View file @
aa402425
...
@@ -275,7 +275,7 @@ def add_exp(
...
@@ -275,7 +275,7 @@ def add_exp(
return
None
return
None
workdir
=
f
"
{
args
.
workdir
}
/
{
simulation
.
name
}
/
{
run_number
}
"
workdir
=
f
"
{
args
.
workdir
}
/
{
simulation
.
name
}
/
{
run_number
}
"
cpdir
=
f
"
{
args
.
cp
dir
}
/
{
simulation
.
name
}
/0"
cpdir
=
f
"
{
args
.
work
dir
}
/
{
simulation
.
name
}
/0"
if
args
.
shmdir
is
not
None
:
if
args
.
shmdir
is
not
None
:
shmdir
=
f
"
{
args
.
shmdir
}
/
{
simulation
.
name
}
/
{
run_number
}
"
shmdir
=
f
"
{
args
.
shmdir
}
/
{
simulation
.
name
}
/
{
run_number
}
"
...
...
experiments/simbricks/orchestration/instantiation/base.py
View file @
aa402425
...
@@ -64,7 +64,7 @@ class InstantiationEnvironment(util_base.IdObj):
...
@@ -64,7 +64,7 @@ class InstantiationEnvironment(util_base.IdObj):
# TODO: add more parameters that wont change during instantiation
# TODO: add more parameters that wont change during instantiation
self
.
_repodir
:
str
=
pathlib
.
Path
(
repo_path
).
absolute
()
self
.
_repodir
:
str
=
pathlib
.
Path
(
repo_path
).
absolute
()
self
.
_workdir
:
str
=
pathlib
.
Path
(
workdir
).
absolute
()
self
.
_workdir
:
str
=
pathlib
.
Path
(
workdir
).
absolute
()
self
.
_cpdir
:
str
=
pathlib
.
Path
(
self
.
_workdir
).
joinpath
(
cpdir
).
absolute
()
self
.
_cpdir
:
str
=
pathlib
.
Path
(
cpdir
).
absolute
()
self
.
_shm_base
:
str
=
pathlib
.
Path
(
self
.
_workdir
).
joinpath
(
shm_base
).
absolute
()
self
.
_shm_base
:
str
=
pathlib
.
Path
(
self
.
_workdir
).
joinpath
(
shm_base
).
absolute
()
self
.
_output_base
:
str
=
(
self
.
_output_base
:
str
=
(
pathlib
.
Path
(
self
.
_workdir
).
joinpath
(
output_base
).
absolute
()
pathlib
.
Path
(
self
.
_workdir
).
joinpath
(
output_base
).
absolute
()
...
@@ -299,7 +299,6 @@ class Instantiation(util_base.IdObj):
...
@@ -299,7 +299,6 @@ class Instantiation(util_base.IdObj):
)
)
return
path
return
path
# TODO: fixme
def
cfgtar_path
(
self
,
sim
:
sim_base
.
Simulator
)
->
str
:
def
cfgtar_path
(
self
,
sim
:
sim_base
.
Simulator
)
->
str
:
return
f
"
{
self
.
_env
.
_workdir
}
/cfg.
{
sim
.
name
}
.tar"
return
f
"
{
self
.
_env
.
_workdir
}
/cfg.
{
sim
.
name
}
.tar"
...
...
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