|
@@ -140,16 +140,12 @@ def cal_deltsoc(sn, end_time, start_time):
|
|
|
DetaSoc1.append(a) # 计算到达峰值点的累计Soc
|
|
|
if DetaSoc1:
|
|
|
DetaSoc2.append(max(DetaSoc1) - min(DetaSoc1))
|
|
|
-
|
|
|
- DetaSocMean = np.mean(DetaSoc2)
|
|
|
- DetaSoc.append(DetaSocMean)
|
|
|
- DetaSoc_SN.append(SNnum)
|
|
|
- DetaSoc_time.append(time[ChgStartValid[-1]])
|
|
|
-
|
|
|
+ DetaSoc_time.append(time[ChgStartValid[i]])
|
|
|
+ DetaSoc_SN.append(SNnum)
|
|
|
|
|
|
result_DetaSoc={'time':DetaSoc_time,
|
|
|
'SN号':DetaSoc_SN,
|
|
|
- 'Soc差':DetaSoc}
|
|
|
+ 'Soc差':DetaSoc2}
|
|
|
Result_DetaSoc=pd.DataFrame(result_DetaSoc)
|
|
|
return Result_DetaSoc
|
|
|
return pd.DataFrame()
|