From 79911539a2316b6c5fde947a6f58bca925cdbc65 Mon Sep 17 00:00:00 2001
From: Markus Quaritsch <markus.quaritsch@tugraz.at>
Date: Thu, 9 Nov 2017 16:14:40 +0100
Subject: [PATCH] use new SI interface

---
 .../VectoCore/InputData/Reader/DrivingCycleDataReader.cs      | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/VectoCore/VectoCore/InputData/Reader/DrivingCycleDataReader.cs b/VectoCore/VectoCore/InputData/Reader/DrivingCycleDataReader.cs
index 454f2f7fb3..efe23e3319 100644
--- a/VectoCore/VectoCore/InputData/Reader/DrivingCycleDataReader.cs
+++ b/VectoCore/VectoCore/InputData/Reader/DrivingCycleDataReader.cs
@@ -720,8 +720,8 @@ namespace TUGraz.VectoCore.InputData.Reader
                 var entries = table.Rows.Cast<DataRow>().Select(row => new DrivingCycleData.DrivingCycleEntry {
                     Time = row.ParseDouble(Fields.Time).SI<Second>(),
                     VehicleTargetSpeed = row.ParseDouble(Fields.VehicleSpeed).KMPHtoMeterPerSecond(),
-                    AdditionalAuxPowerDemand = row.ParseDoubleOrGetDefault(Fields.AdditionalAuxPowerDemand).SI().Kilo.Watt.Cast<Watt>(),
-                   PWheel = row.ParseDouble(Fields.PWheel).SI().Kilo.Watt.Cast<Watt>(),
+                    AdditionalAuxPowerDemand = row.ParseDoubleOrGetDefault(Fields.AdditionalAuxPowerDemand).SI(Unit.SI.Kilo.Watt).Cast<Watt>(),
+                   PWheel = row.ParseDouble(Fields.PWheel).SI(Unit.SI.Kilo.Watt).Cast<Watt>(),
                    EngineSpeed = row.ParseDouble(Fields.EngineSpeedSuffix).RPMtoRad(),
                    FanSpeed = row.ParseDouble(Fields.FanSpeed).RPMtoRad()
                 }).ToArray();
-- 
GitLab