Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS will be completely phased out by mid-2025. To see alternatives please check here

Skip to content
Snippets Groups Projects
Unverified Commit 5dfb827f authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

fix localization issue in battery standard values correction

parent e4e63afd
No related branches found
No related tags found
No related merge requests found
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());
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment