fa4cd63249283af8cde23201828224a2f51e7dbe,flow/envs/base_env.py,Env,_step,#Env#Any#,316
Before Change
self.state = self.get_state()
// rllab requires non-multi agent to have state shape as
// num-states x num_vehicles
if not self.multi_agent:
self.state = self.state.T
else:
self.state = []
// collect observation new state associated with action
After Change
// collect information of the state of the network based on the
// environment class used
if isinstance(self.action_space, list):
// rllab requires non-multi agent to have state shape as
// num-states x num_vehicles
self.state = self.get_state()
else:
self.state = self.get_state().T
// collect observation new state associated with action
next_observation = list(self.state)
// crash encodes whether sumo experienced a crash
crash = \
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: flow-project/flow
Commit Name: fa4cd63249283af8cde23201828224a2f51e7dbe
Time: 2018-02-06
Author: akreidieh@gmail.com
File Name: flow/envs/base_env.py
Class Name: Env
Method Name: _step
Project Name: flow-project/flow
Commit Name: fa4cd63249283af8cde23201828224a2f51e7dbe
Time: 2018-02-06
Author: akreidieh@gmail.com
File Name: flow/envs/wave_attenuation.py
Class Name: WaveAttenuationEnv
Method Name: pre_step
Project Name: flow-project/flow
Commit Name: 3cb05c66aea220019f4ec4fd78193f16e67e4381
Time: 2017-12-30
Author: akreidieh@gmail.com
File Name: flow/envs/base_env.py
Class Name: SumoEnvironment
Method Name: apply_lane_change