From 03ca5a907d68ef59ae4ab11cb7eada7f0b735613 Mon Sep 17 00:00:00 2001 From: Markus Quaritsch <markus.quaritsch@tugraz.at> Date: Thu, 15 Sep 2022 20:43:37 +0200 Subject: [PATCH] bugfix saving iepc job: always write tcu parameters --- VectoCore/VectoCore/OutputData/FileIO/JSONFileWriter.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/VectoCore/VectoCore/OutputData/FileIO/JSONFileWriter.cs b/VectoCore/VectoCore/OutputData/FileIO/JSONFileWriter.cs index d72c196e6f..1db29ff4cf 100644 --- a/VectoCore/VectoCore/OutputData/FileIO/JSONFileWriter.cs +++ b/VectoCore/VectoCore/OutputData/FileIO/JSONFileWriter.cs @@ -1160,9 +1160,10 @@ public class JSONFileWriter : IOutputFileWriter if (job.Vehicle.Components.GearboxInputData != null) { body.Add("GearboxFile", GetRelativePath(input.JobInputData.Vehicle.Components.GearboxInputData.DataSource.SourceFile, basePath)); - if (input.DriverInputData.GearshiftInputData != null && !job.SavedInDeclarationMode) { - body.Add("TCU", GetRelativePath(input.DriverInputData.GearshiftInputData.Source, basePath)); - } + + } + if (input.DriverInputData.GearshiftInputData != null && !job.SavedInDeclarationMode) { + body.Add("TCU", GetRelativePath(input.DriverInputData.GearshiftInputData.Source, basePath)); } if (!job.SavedInDeclarationMode && job.Vehicle.VehicleType == VectoSimulationJobType.IEPC_S) { -- GitLab