Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- n_rows = 5
- n_columns = 5
- num_cars_left = 50
- num_cars_right = 50
- num_cars_top = 50
- num_cars_bot = 50
- Loading configuration... done.
- Success.
- Loading configuration... done.
- Traceback (most recent call last):
- File "examples/sumo/grid.py", line 237, in <module>
- exp.run(1, 1500)
- File "/home/dnl/flow/flow/core/experiment.py", line 118, in run
- state = self.env.reset()
- File "/home/dnl/flow/flow/envs/loop/loop_accel.py", line 167, in reset
- obs = super().reset()
- File "/home/dnl/flow/flow/envs/base_env.py", line 520, in reset
- raise FatalFlowError(msg=msg)
- flow.utils.exceptions.FatalFlowError:
- Not enough vehicles have spawned! Bad start?
- Missing vehicles / initial state:
- - human_994: ('human', 'bot4_0', 0, 446, 0)
- - human_546: ('human', 'top0_5', 0, 466, 0)
- - human_886: ('human', 'bot3_0', 0, 366, 0)
- - human_689: ('human', 'bot1_0', 0, 396, 0)
- .....
- # check to make sure all vehicles have been spawned
- if len(self.initial_ids) > len(initial_ids):
- missing_vehicles = list(set(self.initial_ids) - set(initial_ids))
- msg = 'nNot enough vehicles have spawned! Bad start?n'
- 'Missing vehicles / initial state:n'
- for veh_id in missing_vehicles:
- msg += '- {}: {}n'.format(veh_id, self.initial_state[veh_id])
- raise FatalFlowError(msg=msg)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement