Flatland issueshttps://gitlab.aicrowd.com/flatland/flatland/-/issues2019-09-20T10:39:40Zhttps://gitlab.aicrowd.com/flatland/flatland/-/issues/163Test for Multi-Speed2019-09-20T10:39:40ZErik NygrenTest for Multi-SpeedWe need to write good tests to guarantee correct working of different speeds:
- Test different kind of speeds on straight track
- Check that travel times are consistent
- Check that this works well with stochastic events (see #167 )We need to write good tests to guarantee correct working of different speeds:
- Test different kind of speeds on straight track
- Check that travel times are consistent
- Check that this works well with stochastic events (see #167 )v2Christian EichenbergerChristian Eichenbergerhttps://gitlab.aicrowd.com/flatland/flatland/-/issues/162Write and improve on stochasticity tests2019-09-05T15:33:26ZErik NygrenWrite and improve on stochasticity testsHere are some ideas to add to the stochasticity tests:
- Agents_stopping_in_middle_of_cells_and_resuming
- Agents stopping at start of cell and then staying stopped (Stop action chosen)
- Stopping rate (Already implemented)Here are some ideas to add to the stochasticity tests:
- Agents_stopping_in_middle_of_cells_and_resuming
- Agents stopping at start of cell and then staying stopped (Stop action chosen)
- Stopping rate (Already implemented)v2Christian EichenbergerChristian Eichenbergerhttps://gitlab.aicrowd.com/flatland/flatland/-/issues/107updating test for generators2019-07-16T17:35:55ZErik Nygrenupdating test for generatorsAdd more tests to generator testing to be sure that it works as expected.Add more tests to generator testing to be sure that it works as expected.v1Erik NygrenErik Nygrenhttps://gitlab.aicrowd.com/flatland/flatland/-/issues/102Tests for all generators2019-07-12T15:25:18ZErik NygrenTests for all generatorsWrite tests to check the behaviour of all generatorsWrite tests to check the behaviour of all generatorsv1Erik NygrenErik Nygrenhttps://gitlab.aicrowd.com/flatland/flatland/-/issues/92Reward function test2019-07-18T06:46:18ZErik NygrenReward function testWrite a test that validated reward function:
- Reward is always `-time_penalty` even if:
- No action is chosen
- invalid action is chosen
- agents get stuck at each other
- Reward is + 1 for all agents if and only if all agents rea...Write a test that validated reward function:
- Reward is always `-time_penalty` even if:
- No action is chosen
- invalid action is chosen
- agents get stuck at each other
- Reward is + 1 for all agents if and only if all agents reach targetv1Christian EichenbergerChristian Eichenbergerhttps://gitlab.aicrowd.com/flatland/flatland/-/issues/250Tests for agent static2019-10-30T20:27:52ZErik NygrenTests for agent staticAdd tests that show that agent static is populated always.
Currently we get the following error when `env.reset(False,False,False)` is called:
```
Error : 'NoneType' object has no attribute '__dict__'
Traceback (most recent call last)...Add tests that show that agent static is populated always.
Currently we get the following error when `env.reset(False,False,False)` is called:
```
Error : 'NoneType' object has no attribute '__dict__'
Traceback (most recent call last):
File "/Users/mohanty/work/SBB/flatland/flatland/flatland/evaluators/service.py", line 621, in run
self.handle_env_create(command)
File "/Users/mohanty/work/SBB/flatland/flatland/flatland/evaluators/service.py", line 359, in handle_env_create
random_seed=RANDOM_SEED
File "/Users/mohanty/work/SBB/flatland/flatland/flatland/envs/rail_env.py", line 320, in reset
self.restart_agents()
File "/Users/mohanty/work/SBB/flatland/flatland/flatland/envs/rail_env.py", line 250, in restart_agents
self.agents = EnvAgent.list_from_static(self.agents_static)
File "/Users/mohanty/work/SBB/flatland/flatland/flatland/envs/agent_utils.py", line 124, in list_from_static
for handle, oEAS in zip(handles, lEnvAgentStatic)]
File "/Users/mohanty/work/SBB/flatland/flatland/flatland/envs/agent_utils.py", line 124, in <listcomp>
for handle, oEAS in zip(handles, lEnvAgentStatic)]
AttributeError: 'NoneType' object has no attribute '__dict__'
```
relates to #251
Christian BaumbergerChristian Baumbergerhttps://gitlab.aicrowd.com/flatland/flatland/-/issues/228Test for sparse rail generator2019-10-21T20:20:19ZErik NygrenTest for sparse rail generatorEnhance the tests for the sparse rail generator to test it at limit parameters.
For example the grid_mode=True test should push the number of cities in the env to the limitEnhance the tests for the sparse rail generator to test it at limit parameters.
For example the grid_mode=True test should push the number of cities in the env to the limitErik NygrenErik Nygren2019-10-23