|
@@ -132,15 +132,15 @@ class SafetyWarning:
|
|
|
deltvolt_last = np.array([0]*self.param.CellVoltNums)
|
|
|
|
|
|
|
|
|
- if min(deltvolt_rst)<-10:
|
|
|
- deltvolt_count = np.sum(deltvolt_rst < -10)
|
|
|
- deltvolt_index = np.where(deltvolt_rst < -10)
|
|
|
- deltvolt_last1 = deltvolt_last[deltvolt_index]
|
|
|
- if deltvolt_count < 4 and min(deltvolt_last1) < -10:
|
|
|
- cellshortfault1=1
|
|
|
- cellshort_num= list(np.where(deltvolt_last<-10)[0]+1)
|
|
|
- break
|
|
|
- elif min(deltvolt_rst)<-6:
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ if min(deltvolt_rst)<-6:
|
|
|
deltvolt_rst1=list(deltvolt_rst)
|
|
|
deltvolt_min_index = deltvolt_rst1.index(min(deltvolt_rst))
|
|
|
deltvolt_last_list = list(deltvolt_last)
|