From 4e2625861e743a6ab53826d0bf89a6fb636ffc4f Mon Sep 17 00:00:00 2001 From: Markus Quaritsch <quaritsch@ivt.tugraz.at> Date: Wed, 18 Jan 2023 08:29:56 +0100 Subject: [PATCH] do not require a hybrid controller, so the test-powertrain class can be used for other purposes as well --- .../Models/SimulationComponent/Strategies/TestPowertrain.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/VectoCore/VectoCore/Models/SimulationComponent/Strategies/TestPowertrain.cs b/VectoCore/VectoCore/Models/SimulationComponent/Strategies/TestPowertrain.cs index e198f3a774..9f40b75880 100644 --- a/VectoCore/VectoCore/Models/SimulationComponent/Strategies/TestPowertrain.cs +++ b/VectoCore/VectoCore/Models/SimulationComponent/Strategies/TestPowertrain.cs @@ -92,9 +92,9 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Strategies } } - if (HybridController == null) { - throw new VectoException("Unknown HybridController in TestContainer: {0}", Container.HybridController?.GetType().FullName); - } + //if (HybridController == null) { + // throw new VectoException("Unknown HybridController in TestContainer: {0}", Container.HybridController?.GetType().FullName); + //} var busAux = container.RunData.BusAuxiliaries; if (busAux != null && busAux.ElectricalUserInputsConfig.ConnectESToREESS) { -- GitLab