Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Flatland
neurips2020-flatland-baselines
Commits
97fc8574
Commit
97fc8574
authored
Sep 13, 2020
by
nilabha
Browse files
changed name from malfunction_generator to malfunction_rate
parent
2656b6b1
Pipeline
#5382
failed with stage
in 2 minutes and 56 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
envs/flatland_single.py
View file @
97fc8574
...
...
@@ -60,7 +60,7 @@ class FlatlandSingle(gym.Env):
malfunction_generator
=
no_malfunction_generator
()
if
{
'malfunction_rate'
,
'min_duration'
,
'max_duration'
}
<=
self
.
_config
.
keys
():
stochastic_data
=
MalfunctionParameters
(
malfunction_
gene
rat
or
=
self
.
_config
[
'malfunction_rate'
],
malfunction_rat
e
=
self
.
_config
[
'malfunction_rate'
],
min_duration
=
self
.
_config
[
'malfunction_min_duration'
],
max_duration
=
self
.
_config
[
'malfunction_max_duration'
]
)
...
...
envs/flatland_sparse.py
View file @
97fc8574
...
...
@@ -82,7 +82,7 @@ class FlatlandSparse(FlatlandBase):
malfunction_generator
=
no_malfunction_generator
()
if
{
'malfunction_rate'
,
'malfunction_min_duration'
,
'malfunction_max_duration'
}
<=
self
.
_config
.
keys
():
stochastic_data
=
MalfunctionParameters
(
malfunction_
gene
rat
or
=
self
.
_config
[
'malfunction_rate'
],
malfunction_rat
e
=
self
.
_config
[
'malfunction_rate'
],
min_duration
=
self
.
_config
[
'malfunction_min_duration'
],
max_duration
=
self
.
_config
[
'malfunction_max_duration'
]
)
...
...
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