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
dbba6af3
Unverified
Commit
dbba6af3
authored
Nov 30, 2024
by
Antoine Kaufmann
Browse files
symphony/orchestration: don't create default inst env
Should be explicitly created by the runtime later and set.
parent
775b5042
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
symphony/orchestration/simbricks/orchestration/instantiation/base.py
...chestration/simbricks/orchestration/instantiation/base.py
+2
-3
No files found.
symphony/orchestration/simbricks/orchestration/instantiation/base.py
View file @
dbba6af3
...
...
@@ -81,11 +81,10 @@ class Instantiation():
def
__init__
(
self
,
sim
:
sim_base
.
Simulation
,
env
:
InstantiationEnvironment
=
InstantiationEnvironment
(),
):
self
.
_id
=
next
(
self
.
__id_iter
)
self
.
simulation
:
sim_base
.
Simulation
=
sim
self
.
env
:
InstantiationEnvironment
=
env
self
.
env
:
InstantiationEnvironment
|
None
=
None
self
.
_executor
:
command_executor
.
Executor
|
None
=
None
self
.
_create_checkpoint
:
bool
=
False
self
.
_restore_checkpoint
:
bool
=
False
...
...
@@ -332,7 +331,7 @@ class Instantiation():
self
.
_restore_checkpoint
=
restore_checkpoint
def
copy
(
self
)
->
Instantiation
:
cop
=
Instantiation
(
sim
=
self
.
simulation
,
env
=
self
.
env
)
cop
=
Instantiation
(
sim
=
self
.
simulation
)
cop
.
simulation
=
copy
.
deepcopy
(
self
.
simulation
)
# maybe there is a smarter way of achieving this...
cop
.
_create_checkpoint
=
self
.
_create_checkpoint
cop
.
_restore_checkpoint
=
self
.
_restore_checkpoint
...
...
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