Skip to content
Snippets Groups Projects
Commit 0be36015 authored by Egli Adrian (IT-SCI-API-PFI)'s avatar Egli Adrian (IT-SCI-API-PFI)
Browse files

refactoring and clean up

parent da491771
No related branches found
No related tags found
No related merge requests found
...@@ -476,10 +476,11 @@ for itrials in range(1000): ...@@ -476,10 +476,11 @@ for itrials in range(1000):
env_renderer.render_env(show=True, show_observations=False, show_predictions=False) env_renderer.render_env(show=True, show_observations=False, show_predictions=False)
cnt += 1 cnt += 1
env_renderer.gl.save_image( if os.path.exists("./../render_output/"):
os.path.join( env_renderer.gl.save_image(
"./../render_output/", os.path.join(
"flatland_frame_{:04d}_{:04d}.png".format(itrials, 0) "./../render_output/",
)) "flatland_frame_{:04d}_{:04d}.png".format(itrials, 0)
))
env_renderer.close_window() env_renderer.close_window()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment