Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit 4851a1d4 authored by Michael KRISPER's avatar Michael KRISPER
Browse files

corrected test case for pto changes

parent 8ee642be
Branches
Tags
No related merge requests found
......@@ -147,7 +147,6 @@ namespace TUGraz.VectoCore.Models.Simulation.Data
continue;
}
for (var inTorque = engineData.FullLoadCurve.FullLoadStationaryTorque(angularVelocity) / 3;
inTorque < engineData.FullLoadCurve.FullLoadStationaryTorque(angularVelocity);
inTorque += 2.0 / 3.0 * engineData.FullLoadCurve.FullLoadStationaryTorque(angularVelocity) / 10.0) {
......@@ -192,7 +191,7 @@ namespace TUGraz.VectoCore.Models.Simulation.Data
}
}
if (runData.Cycle.Entries.Any(e => e.PTOActive)) {
if (runData.Cycle != null && runData.Cycle.Entries.Any(e => e.PTOActive)) {
if (runData.PTO == null || runData.PTO.PTOCycle == null)
return new ValidationResult("PTOCycle is used in DrivingCycle, but is not defined in Vehicle-Data.");
}
......
......@@ -92,7 +92,8 @@ namespace TUGraz.VectoCore.Utils
/// <param name="fullHeader">set true is column names should be preserved. Otherwise units are trimed away. default: false.</param>
/// <param name="source"></param>
/// <returns>A DataTable which represents the CSV File.</returns>
public static TableData ReadStream(Stream stream, bool ignoreEmptyColumns = false, bool fullHeader = false, string source = null)
public static TableData ReadStream(Stream stream, bool ignoreEmptyColumns = false, bool fullHeader = false,
string source = null)
{
var retVal = new TableData(source);
ReadCSV(retVal, stream, ignoreEmptyColumns, fullHeader);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment