Describe the issue
I'm guessing this is an issue with argparse. The default value for args.render_mode is 'sumo-gui', yet the code doesn't hit the conditional case that sets sim_params.render = True. From the ipdb debugger, when you run p(args.render_mode), (all this is is a print function) it prints 'sumo-gui,' as expected. When you run args.render_mode, it gives you a Namespace object. It seems like this is why the condition args.render_mode == 'sumo_gui' isn't registering as True.
To Reproduce
Leave empty if not applicable.
visualizer_rllib.py
python visualizer_rllib.py [arbitrary figure eight experiment ran for this specific purpose]
Expected behavior
Running args.render_mode should return 'sumo-gui', or some valid string, rather than a Namespace object.
Screenshots
If applicable, add screenshots to help explain your problem.
Leave empty if not applicable.
Desktop (please complete the following information):
OS: OSX
Commit number of flow [run git log and copy the commit number]: b4eafc2986d0da3581cfff1be5fc2ecf402f6136
Version [run python -c "import flow; print(flow.version)"]: 0.3.0
Leave empty if not applicable.
Additional context
Add any other context about the problem here.
Choose an option This is a:
Describe the issue I'm guessing this is an issue with argparse. The default value for args.render_mode is 'sumo-gui', yet the code doesn't hit the conditional case that sets
sim_params.render = True
. From the ipdb debugger, when you runp(args.render_mode)
, (all this is is a print function) it prints 'sumo-gui,' as expected. When you runargs.render_mode
, it gives you a Namespace object. It seems like this is why the conditionargs.render_mode == 'sumo_gui'
isn't registering as True.To Reproduce Leave empty if not applicable.
Expected behavior Running args.render_mode should return 'sumo-gui', or some valid string, rather than a Namespace object.
Screenshots If applicable, add screenshots to help explain your problem. Leave empty if not applicable.
Desktop (please complete the following information):
Additional context Add any other context about the problem here.