I am following the tutorial on the web. When I tried to run the examples on the tutorials.
On tutorial 1,5,6.There are similar errors:
For tutorial 1,5: TypeError:'AccelEnv' object is not subscriptable.
For tutorial 6: TypeError:'TestEnv' object is not subscriptable.
These two environments(AcceleEnv&TestEnv) all belong to flow.envs package.
Sorry for the annoyance. We recently updated the way we run the experiments (about last week). The tutorials that you see are still with the old way of running the experiments (i.e.
exp = Experiment(env)
).We have a new Pull Request at https://github.com/flow-project/flow/pull/802/files which will be merged soon, to update the tutorials.
In the meantime if you want to run the tutorials, you have to define a
flow_params
dictionary and then run your experiment as