From 00a0d609a02e5d90a88c2810f2093926e132c24f Mon Sep 17 00:00:00 2001 From: Chad Baker Date: Tue, 7 Jan 2025 15:24:29 -0700 Subject: [PATCH] added `default_hybrid_electric_loco` --- .../altrios-core/src/consist/locomotive/locomotive_model.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rust/altrios-core/src/consist/locomotive/locomotive_model.rs b/rust/altrios-core/src/consist/locomotive/locomotive_model.rs index 34706f19..73381ce3 100644 --- a/rust/altrios-core/src/consist/locomotive/locomotive_model.rs +++ b/rust/altrios-core/src/consist/locomotive/locomotive_model.rs @@ -330,6 +330,12 @@ impl LocoTrait for DummyLoco { Ok(Self::default_battery_electric_loco()) } + #[staticmethod] + #[pyo3(name = "default_hybrid_electric_loco")] + fn default_hybrid_electric_loco_py () -> anyhow::Result { + Ok(Self::default_hybrid_electric_loco()) + } + #[staticmethod] #[pyo3(name = "build_battery_electric_loco")] fn build_battery_electric_loco_py (