-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option to deactivate departure and arrival windows #10
Comments
a momentary fix works by: def deactivate_windows(env): usage: |
A cleaner solution would involve sth. like a parameter: and some internal logic which does not involve the arrival and departure times, and starts the agent's states in TrainState.READY_TO_DEPART |
I just found out that this is not enough to reinstate the previous behaviour of flatlatland (version 2). reason: there is a check in the handle_done_state() method of RailEnv, where agents are removed from the environment. |
I found out that this is not so much an issue of the reset() but of "broken references". (bring agent to his target) if we do: but So the issue lies in that our reference "agent" does not refer to env.agents[0] anymore. My conclusion is that this is not really a bug. |
The issue can be closed, right?
mmarti-tsch ***@***.***> schrieb am Mi., 12. Juli 2023, 16:26:
… I found out that this is not so much an issue of the reset() but of
"broken references".
E.g. if we do
env = RailEnv(...)
env.reset(...)
agent = env.agents[0]
now agent.arrival_time is None.
(bring agent to his target)
now
agent.arrival_time has some value, say 3.
if we do:
env.reset(...)
we now still have
agent.arrival_time = 3
but
env.agents[0].arrival_time is None.
So the issue lies in that our reference "agent" does not refer to
env.agents[0] anymore.
My conclusion is that this is not really a bug.
It might still be a possible pitfall for users.
—
Reply to this email directly, view it on GitHub
<#10 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACPQ2XS3LJJPNLSYLMLOM43XP2XX3ANCNFSM6AAAAAAXXFEAKM>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
No description provided.
The text was updated successfully, but these errors were encountered: