flow
flow copied to clipboard
Fail to save video
Bug Description
A clear and concise description of the bug and what you expected to happen.
Bug Reproduce
File in which the bug occurred: file.py
The exact command that you did run that caused the bug:
i run the tutorial 4 visualization chapter, i set the --save_render to true, but cannot save video
Output Log
Traceback (most recent call last):
File "visualizer_rllib.py", line 386, in
Screenshots
Screenshots:
Versions
I think this broke with #836, particularly because of line 135: https://github.com/flow-project/flow/blob/bc65245504e590604ffa3a49376e3367c318a475/flow/envs/base.py#L134-L136
which now fails to hit this conditional statement: https://github.com/flow-project/flow/blob/bc65245504e590604ffa3a49376e3367c318a475/flow/envs/base.py#L221-L225
A quick fix seems is to change self.sim_params.render
to self.should_render
in line 223.