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
Commit dfbd428d authored by Stefanos DOUMPOULAKIS's avatar Stefanos DOUMPOULAKIS
Browse files

Merge branch 'issue-617' into 'amdm2/develop'

fix #617: localization affects results

See merge request vecto/vecto!210
parents 9b746cc1 06fa93a3
No related branches found
No related tags found
No related merge requests found
......@@ -145,13 +145,13 @@ namespace TUGraz.VectoCore.Models.Declaration
foreach (var entry in clusterResult) {
var dragTorque = fullLoadCurve.DragLoadStationaryTorque(entry.RPMtoRad()).Value();
var newRow = denormalizedData.NewRow();
newRow[FuelConsumptionMapReader.Fields.EngineSpeed] = Math.Round(entry, 2, MidpointRounding.AwayFromZero);
newRow[FuelConsumptionMapReader.Fields.Torque] = Math.Round(dragTorque, 2, MidpointRounding.AwayFromZero);
newRow[FuelConsumptionMapReader.Fields.EngineSpeed] = Math.Round(entry, 2, MidpointRounding.AwayFromZero).ToXMLFormat(2);
newRow[FuelConsumptionMapReader.Fields.Torque] = Math.Round(dragTorque, 2, MidpointRounding.AwayFromZero).ToXMLFormat(2);
newRow[FuelConsumptionMapReader.Fields.FuelConsumption] = 0;
denormalizedData.Rows.Add(newRow);
var newRow2 = denormalizedData.NewRow();
newRow2[FuelConsumptionMapReader.Fields.EngineSpeed] = Math.Round(entry, 2, MidpointRounding.AwayFromZero);
newRow2[FuelConsumptionMapReader.Fields.Torque] = Math.Round(dragTorque - 100, 2, MidpointRounding.AwayFromZero);
newRow2[FuelConsumptionMapReader.Fields.EngineSpeed] = Math.Round(entry, 2, MidpointRounding.AwayFromZero).ToXMLFormat(2);
newRow2[FuelConsumptionMapReader.Fields.Torque] = Math.Round(dragTorque - 100, 2, MidpointRounding.AwayFromZero).ToXMLFormat(2);
newRow2[FuelConsumptionMapReader.Fields.FuelConsumption] = 0;
denormalizedData.Rows.Add(newRow2);
}
......
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