berkeleyflow / flow

MIT License
14 stars 4 forks source link

Change _apply_rl_actions in green wave and added tests #42

Open kjang96 opened 6 years ago

kjang96 commented 6 years ago

Removed switch_time from green_wave_env's env params, and replaced with min_yellow_time and min_green_time. Also added tests in test_traffic_lights.py

self.last_change is still 3 columns long, but now records last change for switches to green, not only switches to yellow.