SHARE
TWEET

Untitled

a guest Jul 23rd, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. n_rows = 5
  2. n_columns = 5
  3. num_cars_left = 50
  4. num_cars_right = 50
  5. num_cars_top = 50
  6. num_cars_bot = 50
  7.      
  8. Loading configuration... done.
  9. Success.
  10. Loading configuration... done.
  11. Traceback (most recent call last):
  12.   File "examples/sumo/grid.py", line 237, in <module>
  13.     exp.run(1, 1500)
  14.   File "/home/dnl/flow/flow/core/experiment.py", line 118, in run
  15.     state = self.env.reset()
  16.   File "/home/dnl/flow/flow/envs/loop/loop_accel.py", line 167, in reset
  17.     obs = super().reset()
  18.   File "/home/dnl/flow/flow/envs/base_env.py", line 520, in reset
  19.     raise FatalFlowError(msg=msg)
  20. flow.utils.exceptions.FatalFlowError:
  21. Not enough vehicles have spawned! Bad start?
  22. Missing vehicles / initial state:
  23. - human_994: ('human', 'bot4_0', 0, 446, 0)
  24. - human_546: ('human', 'top0_5', 0, 466, 0)
  25. - human_886: ('human', 'bot3_0', 0, 366, 0)
  26. - human_689: ('human', 'bot1_0', 0, 396, 0)
  27. .....
  28.      
  29. # check to make sure all vehicles have been spawned
  30.         if len(self.initial_ids) > len(initial_ids):
  31.             missing_vehicles = list(set(self.initial_ids) - set(initial_ids))
  32.             msg = 'nNot enough vehicles have spawned! Bad start?n'
  33.                   'Missing vehicles / initial state:n'
  34.             for veh_id in missing_vehicles:
  35.                 msg += '- {}: {}n'.format(veh_id, self.initial_state[veh_id])
  36.             raise FatalFlowError(msg=msg)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top