Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 27174a51 authored by Markus QUARITSCH's avatar Markus QUARITSCH
Browse files

reduce log-level in case time shares in sum-data does not sum up to 100%, increase tolerance

parent 8d0b20fb
No related branches found
No related tags found
No related merge requests found
......@@ -584,8 +584,8 @@ namespace TUGraz.VectoCore.OutputData
row[MAX_ENGINE_SPEED] = (ConvertedSI)modData.MaxEngineSpeed().AsRPM.SI<Scalar>();
if (accTimeShare != null && decTimeShare != null && cruiseTimeShare != null) {
var shareSum = accTimeShare + decTimeShare + cruiseTimeShare + stopTimeShare;
if (!shareSum.IsEqual(100)) {
Log.Error(
if (!shareSum.IsEqual(100, 1e-2)) {
Log.Warn(
"Sumfile Error: driving behavior timeshares must sum up to 100%: acc: {0}%, dec: {1}%, cruise: {2}%, stop: {3}%, sum: {4}%",
accTimeShare.ToOutputFormat(1, null, false), decTimeShare.ToOutputFormat(1, null, false),
cruiseTimeShare.ToOutputFormat(1, null, false), stopTimeShare.ToOutputFormat(1, null, false),
......
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