qingfeng 2 anni fa
parent
commit
f7f2e8c1d4

+ 1 - 1
LIB/MIDDLE/CellStateEstimation/BatSafetyWarning/V1_0_1/CBMSSafetyWarning.py

@@ -68,7 +68,7 @@ class SafetyWarning:
     
         if len(df_short)>1.5:     #超过2行
             #出现两次漏电流<阈值...........................................................................
-            for i in range(self.CellVoltNums):
+            for i in range(self.param.CellVoltNums):
                 cellshort=df_short['cellshort'+str(i+1)]
                 index_list=cellshort[cellshort<self.param.LeakCurrentLv2].index
                 if len(index_list)>1: