This commit is contained in:
wty-yy
2025-12-18 23:14:18 +08:00
parent 1e1a04b4c0
commit 939dc69b7e
25 changed files with 411 additions and 50 deletions

View File

@@ -100,6 +100,9 @@ class BasePipeline:
first_reset = True
self.last_reset_time = sim_data.sim_time
sim_data = self.sim.step()
except Exception as e:
logger.error(f"❌ Pipeline execution failed with error: {e}")
raise e
finally:
self.sim.close_viewer()
self.sim.close_video_writer()

View File

@@ -144,7 +144,7 @@ class MultiPipeline:
save_path = logger.log_dir / "aggregated_results.yaml"
with open(save_path, 'w') as file:
yaml.dump(summary, file, allow_unicode=True)
yaml.dump(summary, file, allow_unicode=True, sort_keys=False)
logger.info("✅ Aggregated execution finished.")
logger.info(f"📁 Aggregated results saved to: {save_path}")