|
@@ -188,7 +188,7 @@ class BatSoh:
|
|
|
for i in range(3,len(self.df_bms)-3):
|
|
|
|
|
|
if abs(self.packcrnt[i]) < 0.3: #电流为0
|
|
|
- delttime=(self.bmstime[i]-self.bmstime[i-1]).total_seconds()
|
|
|
+ delttime=(self.bmstime[i+1]-self.bmstime[1]).total_seconds()
|
|
|
standingtime=standingtime+delttime
|
|
|
self._celltemp_weight(i) #获取不同温度对应的静置时间
|
|
|
|
|
@@ -364,7 +364,7 @@ class BatSoh:
|
|
|
|
|
|
#获取两点法法所需数据-开始
|
|
|
if abs(self.packcrnt[i]) < 0.2: #判断非平台区静置状态
|
|
|
- delttime=(self.bmstime[i]-self.bmstime[i-1]).total_seconds()
|
|
|
+ delttime=(self.bmstime[i+1]-self.bmstime[i]).total_seconds()
|
|
|
standingtime=standingtime+delttime
|
|
|
self._celltemp_weight(i) #获取不同温度对应的静置时间
|
|
|
|