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 bb437a59 authored by Harald Martini's avatar Harald Martini
Browse files

fixed GenericMap_30kW_50Nm.vemo, Class5_Tractor_ENG.vectop

parent c66ee040
No related branches found
No related tags found
No related merge requests found
n[rpm], T[Nm], P_el[kW]
n [rpm], T [Nm], P_el [kW]
0, -59, 0.000
0, -56, 0.000
0, -53, 0.000
......
......@@ -45,7 +45,7 @@
"OverSpeed": 5.0
},
"Cycles": [
"E:\\QUAM\\Downloads\\CoachCycle\\Coach_short_HW.vdri"
"Coach",
]
}
}
\ No newline at end of file
......@@ -62,35 +62,13 @@ namespace TUGraz.VectoCore.Tests.Integration
}
private void RunJsonJob(string path, ExecutionMode executionMode)
{
TestContext.Progress.WriteLine($"Running {path} ...");
var writeReports = true;
var inputData = JSONInputDataFactory.ReadJsonJob(path, false);
var fileWriter = new FileOutputWriter(path);
var runsFactory = SimulatorFactory.CreateSimulatorFactory(executionMode, inputData, fileWriter,
writeReports ? null : new NullDeclarationReport()); //, writeReports ? null : new NullDeclarationReport());
//DisableIterativeRuns(runsFactory);
runsFactory.WriteModalResults = false;
var sumWriter = new SummaryDataContainer(fileWriter); //new MockSumWriter();
var jobContainer = new JobContainer(sumWriter);
runsFactory.SumData = sumWriter;
//var sumDataContainer = sumWriter;
jobContainer.AddRuns(runsFactory);
if (_simulate) {
jobContainer.Execute(true);
jobContainer.WaitFinished();
Assert.IsTrue(jobContainer.Runs.All(r => r.Success));
}
}
private void PrepareJSONSimulation(string path, ExecutionMode executionMode, out JobContainer jobContainer,
out ISimulatorFactory runsFactory)
{
TestContext.Progress.WriteLine($"Preparing {path} ...");
if (IgnoreFiles(path, out var reason)) {
Assert.Ignore(reason);
}
var writeReports = true;
var inputData = JSONInputDataFactory.ReadJsonJob(path, false);
......@@ -129,7 +107,7 @@ namespace TUGraz.VectoCore.Tests.Integration
Assert.Ignore(reason);
}
if (path.EndsWith(".vecto")) {
RunJsonJob(path, ExecutionMode.Declaration);
PrepareJSONSimulation(path, ExecutionMode.Declaration, out _, out _);
} else {
TestContext.Progress.WriteLine($"Running {path} ...");
var writeReports = true;
......
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