diff --git a/VectoCore/VectoCore/InputData/FileIO/XML/Declaration/DataProvider/XMLElectricStorageSystemDeclarationInputData.cs b/VectoCore/VectoCore/InputData/FileIO/XML/Declaration/DataProvider/XMLElectricStorageSystemDeclarationInputData.cs index d2b2cf5c3ae29bfaf620603b11cfb7e75fe39722..d2b4c5b9e1d397be93e2112ff55c9bcbe3924853 100644 --- a/VectoCore/VectoCore/InputData/FileIO/XML/Declaration/DataProvider/XMLElectricStorageSystemDeclarationInputData.cs +++ b/VectoCore/VectoCore/InputData/FileIO/XML/Declaration/DataProvider/XMLElectricStorageSystemDeclarationInputData.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Data; +using System.Globalization; using System.IO; using System.Linq; using System.Xml; @@ -272,10 +273,10 @@ namespace TUGraz.VectoCore.InputData.FileIO.XML.Declaration.DataProvider var maxDischargeCurrent = maxDischargeCurrentRow.Field<string>(BatteryMaxCurrentReader.Fields.MaxDischargeCurrent).ToDouble() * 5; var newMap = new string[] { $"{BatteryMaxCurrentReader.Fields.StateOfCharge}, {BatteryMaxCurrentReader.Fields.MaxChargeCurrent}, {BatteryMaxCurrentReader.Fields.MaxDischargeCurrent}", - $" 0, {maxChargeCurrent}, 0", - $" 30, {maxChargeCurrent}, {maxDischargeCurrent}", - $" 80, {maxChargeCurrent}, {maxDischargeCurrent}", - $"100, 0, {maxDischargeCurrent}" + $" 0, {maxChargeCurrent.ToString(CultureInfo.InvariantCulture)}, 0", + $" 30, {maxChargeCurrent.ToString(CultureInfo.InvariantCulture)}, {maxDischargeCurrent.ToString(CultureInfo.InvariantCulture)}", + $" 80, {maxChargeCurrent.ToString(CultureInfo.InvariantCulture)}, {maxDischargeCurrent.ToString(CultureInfo.InvariantCulture)}", + $"100, 0, {maxDischargeCurrent.ToString(CultureInfo.InvariantCulture)}" }; return VectoCSVFile.ReadStream(newMap.Join(Environment.NewLine).ToStream()); }