diff --git a/DrivingCycle.py b/DrivingCycle.py index 6bcabfd..f70dbcd 100644 --- a/DrivingCycle.py +++ b/DrivingCycle.py @@ -59,9 +59,10 @@ def rescaleTV(self, constant): def rescaleVA(self,constant): '''return scaled VA data, also does not change in place''' - newVAdata = {} - for velocity in self.VAdata: - newVAdata[velocity*constant] = self.VAdata[velocity]*constant + newVAdata = { + velocity * constant: self.VAdata[velocity] * constant + for velocity in self.VAdata + } def plotTV(self): '''Should render a TV plot as a line graph over time, might allow