Browse Source

变更code判空条件

Eric412V 3 years ago
parent
commit
1f2bf4976a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      LIB/MIDDLE/SaftyCenter/DataDiag_Static/SC_BMSUploadError.py

+ 1 - 1
LIB/MIDDLE/SaftyCenter/DataDiag_Static/SC_BMSUploadError.py

@@ -34,7 +34,7 @@ class BMSReportError:
                 if FactoryType ==1:
                     code=df_bms.loc[i,'故障代码']
                     newCode=[]
-                    if len(code):
+                    if not pd.isnull(code):
                         if code>2:
                             num=math.log(code)/math.log(2)
                             power=int(num)