Skip to content
Snippets Groups Projects
Commit 26dcea51 authored by tuhe's avatar tuhe
Browse files

Fixed problem that only affect in class visualizations

parent 44319031
No related branches found
No related tags found
No related merge requests found
......@@ -306,7 +306,7 @@ def train(env,
if done or steps >= max_steps:
trajectory.state.append(sp)
trajectory.env_info.append(info_sp)
trajectory.time.append(np.asarray(info_sp['time_seconds'] if 'time_seconds' in info_s else steps))
trajectory.time.append(np.asarray(info_sp.get('time_seconds', None) if 'time_seconds' in info_s else steps))
break_outer = steps >= max_steps
break
s = sp
......
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