Commit 09e3f9f9 authored by nimishsantosh107's avatar nimishsantosh107
Browse files

Bump version 3.0.3 → 3.0.4, arrival_time bug fix

parent c2d20218
Pipeline #8856 failed with stages
in 8 minutes and 7 seconds
...@@ -4,4 +4,4 @@ ...@@ -4,4 +4,4 @@
__author__ = """S.P. Mohanty""" __author__ = """S.P. Mohanty"""
__email__ = 'mohanty@aicrowd.com' __email__ = 'mohanty@aicrowd.com'
__version__ = '3.0.3' __version__ = '3.0.4'
...@@ -492,7 +492,7 @@ class RailEnv(Environment): ...@@ -492,7 +492,7 @@ class RailEnv(Environment):
def handle_done_state(self, agent): def handle_done_state(self, agent):
""" Any updates to agent to be made in Done state """ """ Any updates to agent to be made in Done state """
if agent.state == TrainState.DONE: if agent.state == TrainState.DONE and agent.arrival_time is None:
agent.arrival_time = self._elapsed_steps agent.arrival_time = self._elapsed_steps
if self.remove_agents_at_target: if self.remove_agents_at_target:
agent.position = None agent.position = None
...@@ -764,4 +764,4 @@ class RailEnv(Environment): ...@@ -764,4 +764,4 @@ class RailEnv(Environment):
self.renderer.close_window() self.renderer.close_window()
except Exception as e: except Exception as e:
print("Could Not close window due to:",e) print("Could Not close window due to:",e)
self.renderer = None self.renderer = None
\ No newline at end of file
[bumpversion] [bumpversion]
current_version = 3.0.3 current_version = 3.0.4
commit = True commit = True
tag = True tag = True
......
...@@ -80,6 +80,6 @@ setup( ...@@ -80,6 +80,6 @@ setup(
test_suite='tests', test_suite='tests',
tests_require=test_requirements, tests_require=test_requirements,
url='https://gitlab.aicrowd.com/flatland/flatland', url='https://gitlab.aicrowd.com/flatland/flatland',
version='3.0.3', version='3.0.4',
zip_safe=False, zip_safe=False,
) )
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment