Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Limmen committed Feb 12, 2024
1 parent 3960700 commit e6e7e3d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def train(self) -> ExperimentExecution:
os.chmod(save_path, 0o777)

# Save latest trace
if self.save_to_metastore:
if self.save_to_metastore and len(orig_env.get_traces()) > 0:
MetastoreFacade.save_simulation_trace(orig_env.get_traces()[-1])
orig_env.reset_traces()

Expand Down

0 comments on commit e6e7e3d

Please sign in to comment.