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
Flatland
Commits
6d0f42a7
Commit
6d0f42a7
authored
Sep 25, 2021
by
nimishsantosh107
Browse files
Bump version 3.0.0 → 3.0.1, evaluator/client.py - Malfunction fix
parent
83cb86a2
Pipeline
#8696
canceled with stages
in 1 minute and 2 seconds
Changes
6
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
dist/flatland_rl-3.0.
0
-py2.py3-none-any.whl
→
dist/flatland_rl-3.0.
1
-py2.py3-none-any.whl
View file @
6d0f42a7
No preview for this file type
flatland/__init__.py
View file @
6d0f42a7
...
...
@@ -4,4 +4,4 @@
__author__
=
"""S.P. Mohanty"""
__email__
=
'mohanty@aicrowd.com'
__version__
=
'3.0.
0
'
__version__
=
'3.0.
1
'
flatland/envs/malfunction_generators.py
View file @
6d0f42a7
...
...
@@ -67,7 +67,7 @@ class FileMalfunctionGen(ParamMalfunctionGen):
if
env_dict
is
None
:
env_dict
=
persistence
.
RailEnvPersister
.
load_env_dict
(
filename
,
load_from_package
=
load_from_package
)
if
"malfunction"
in
env_dict
:
if
env_dict
.
get
(
'malfunction'
)
is
not
None
:
oMFP
=
MalfunctionParameters
(
*
env_dict
[
"malfunction"
])
else
:
oMFP
=
MalfunctionParameters
(
0
,
0
,
0
)
# no malfunctions
...
...
@@ -184,7 +184,7 @@ def malfunction_from_file(filename: str, load_from_package=None) -> Tuple[Malfun
env_dict
=
persistence
.
RailEnvPersister
.
load_env_dict
(
filename
,
load_from_package
=
load_from_package
)
# TODO: make this better by using namedtuple in the pickle file. See issue 282
if
"malfunction"
in
env_dict
:
if
env_dict
.
get
(
'malfunction'
)
is
not
None
:
env_dict
[
'malfunction'
]
=
oMPD
=
MalfunctionProcessData
.
_make
(
env_dict
[
'malfunction'
])
else
:
oMPD
=
None
...
...
flatland/evaluators/client.py
View file @
6d0f42a7
...
...
@@ -267,7 +267,7 @@ class FlatlandRemoteClient(object):
self
.
current_env_path
=
test_env_file_path
self
.
env
=
RailEnv
(
width
=
1
,
height
=
1
,
rail_generator
=
rail_from_file
(
test_env_file_path
),
line_generator
=
line_from_file
(
test_env_file_path
),
malfunction_generator
=
FileMalfunctionGen
(
test_env_file_path
),
malfunction_generator
=
FileMalfunctionGen
(
filename
=
test_env_file_path
),
obs_builder_object
=
obs_builder_object
)
time_start
=
time
.
time
()
...
...
setup.cfg
View file @
6d0f42a7
[bumpversion]
current_version = 3.0.
0
current_version = 3.0.
1
commit = True
tag = True
...
...
setup.py
View file @
6d0f42a7
...
...
@@ -80,6 +80,6 @@ setup(
test_suite
=
'tests'
,
tests_require
=
test_requirements
,
url
=
'https://gitlab.aicrowd.com/flatland/flatland'
,
version
=
'3.0.
0
'
,
version
=
'3.0.
1
'
,
zip_safe
=
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