|
@@ -227,7 +227,7 @@ class BatDiag:
|
|
else:
|
|
else:
|
|
pass
|
|
pass
|
|
else:
|
|
else:
|
|
- if (cellvoltmax0-cellvoltmin0)<self.param.CellVoltDiffLv1-0.05 and (cellvoltmax1-cellvoltmin1)>self.param.CellVoltDiffLv1-0.05: #二级欠压恢复
|
|
|
|
|
|
+ if (cellvoltmax0-cellvoltmin0)<self.param.CellVoltDiffLv1-0.05 and (cellvoltmax1-cellvoltmin1)<self.param.CellVoltDiffLv1-0.05: #二级欠压恢复
|
|
time=self.bmstime[i]
|
|
time=self.bmstime[i]
|
|
self.df_diag_ram.loc[self.df_diag_ram[self.df_diag_ram['code']==16].index, 'end_time'] = time
|
|
self.df_diag_ram.loc[self.df_diag_ram[self.df_diag_ram['code']==16].index, 'end_time'] = time
|
|
else:
|
|
else:
|
|
@@ -311,7 +311,7 @@ class BatDiag:
|
|
else:
|
|
else:
|
|
if self.packcrnt[i]>self.param.PackChgOc+10:
|
|
if self.packcrnt[i]>self.param.PackChgOc+10:
|
|
time=self.bmstime[i]
|
|
time=self.bmstime[i]
|
|
- self.df_diag_ram.loc[self.df_diag_ram[self.df_diag_ram['code']==22].index, 'end_time'] = time
|
|
|
|
|
|
+ self.df_diag_ram.loc[self.df_diag_ram[self.df_diag_ram['code']==21].index, 'end_time'] = time
|
|
else:
|
|
else:
|
|
pass
|
|
pass
|
|
|
|
|