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 6378812c authored by David AMO GONZALEZ's avatar David AMO GONZALEZ
Browse files

Revert testing code

parent 4ef46144
No related branches found
No related tags found
No related merge requests found
......@@ -266,13 +266,12 @@ namespace TUGraz.VectoCore.OutputData
var entry = new T();
entry.Initialize(runData, modData);
lock (Results) {
var existingResults = Results.Where(e =>
e.Mission == entry.Mission && e.LoadingType == entry.LoadingType && e.OVCMode == entry.OVCMode && e.VehicleClass == entry.VehicleClass).ToList();
bool areElectric = existingResults.All(e => e.LoadingType == LoadingType.ReferenceLoad);
if (existingResults.Count > 1)
var existingResults = Results.SingleOrDefault(e =>
e.Mission == entry.Mission && e.LoadingType == entry.LoadingType && e.OVCMode == entry.OVCMode && e.VehicleClass == entry.VehicleClass);
if (existingResults != null)
{
//We already have a result for this run stored, this can happen with iterative runs, in this case we have to remove the old result
Results.RemoveRange(1, existingResults.Count - 1);
Results.Remove(existingResults);
}
Results.Add(entry);
......
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