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 a7e330af authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

Pull request #141: Develop

Merge in VECTO/vecto-dev from VECTO/mq_vecto-dev:develop to develop

* commit '5f5dc154':
  bugfix writing fuel type in sum container
  sum-data contains wrong output for fuel type (class name of iterator) instead of fuel string. add to testcase
parents f4f20d00 5f5dc154
No related branches found
No related tags found
No related merge requests found
......@@ -310,7 +310,7 @@ namespace TUGraz.VectoCore.OutputData
passengerCount = runData.VehicleData.PassengerCount;
}
row[Fields.VEHICLE_FUEL_TYPE] = modData.FuelData.Select(x => x.GetLabel().Join());
row[Fields.VEHICLE_FUEL_TYPE] = modData.FuelData.Select(x => x.GetLabel()).Join();
var totalTime = modData.Duration;
row[Fields.TIME] = (ConvertedSI)totalTime;
......
......@@ -252,6 +252,8 @@ namespace TUGraz.VectoCore.Tests.Reports
Assert.AreEqual(dataProvider.JobInputData.Vehicle.Components.EngineInputData.Model, sumRow[SummaryDataContainer.Fields.ENGINE_MODEL]);
Assert.AreEqual(dataProvider.JobInputData.Vehicle.Components.EngineInputData.EngineModes.First().Fuels.First().FuelType.ToXMLFormat(),
sumRow[SummaryDataContainer.Fields.ENGINE_FUEL_TYPE]);
Assert.AreEqual(dataProvider.JobInputData.Vehicle.Components.EngineInputData.EngineModes.First().Fuels.First().FuelType.ToXMLFormat(),
sumRow[SummaryDataContainer.Fields.VEHICLE_FUEL_TYPE]);
Assert.AreEqual((dataProvider.JobInputData.Vehicle.Components.EngineInputData.RatedPowerDeclared.ConvertToKiloWatt()),
((ConvertedSI)sumRow[SummaryDataContainer.Fields.ENGINE_RATED_POWER]));
Assert.AreEqual(dataProvider.JobInputData.Vehicle.Components.EngineInputData.RatedSpeedDeclared.AsRPM,
......
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