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
954967b8
Commit
954967b8
authored
Nov 19, 2023
by
Jonas Kaufmann
Committed by
Antoine Kaufmann
Dec 05, 2023
Browse files
orchestration/ExpEnv: add type annotations for constructor
parent
6b3fc27f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
experiments/simbricks/orchestration/experiment/experiment_environment.py
...bricks/orchestration/experiment/experiment_environment.py
+1
-1
No files found.
experiments/simbricks/orchestration/experiment/experiment_environment.py
View file @
954967b8
...
@@ -30,7 +30,7 @@ if tp.TYPE_CHECKING: # prevent cyclic import
...
@@ -30,7 +30,7 @@ if tp.TYPE_CHECKING: # prevent cyclic import
class
ExpEnv
(
object
):
class
ExpEnv
(
object
):
"""Manages the experiment environment."""
"""Manages the experiment environment."""
def
__init__
(
self
,
repo_path
,
workdir
,
cpdir
)
->
None
:
def
__init__
(
self
,
repo_path
:
str
,
workdir
:
str
,
cpdir
:
str
)
->
None
:
self
.
create_cp
=
False
self
.
create_cp
=
False
"""Whether a checkpoint should be created."""
"""Whether a checkpoint should be created."""
self
.
restore_cp
=
False
self
.
restore_cp
=
False
...
...
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