Преглед изворни кода

增加序号重排语句,变更celltype100的判断阈值

Eric412V пре 3 година
родитељ
комит
7b2e2bc80d

+ 2 - 2
LIB/MIDDLE/CellStateEstimation/Common/V1_0_1/BatParam.py

@@ -209,8 +209,8 @@ class BatParam:
             self.PackVoltUvLv1=self.CellUvLv1*self.CellVoltNums
             self.PackVoltUvLv2=self.CellUvLv2*self.CellVoltNums
 
-            self.PackChgOc=-40
-            self.PackDisOc=200
+            self.PackChgOc=-600
+            self.PackDisOc=600
 
             self.LeakCurrentLv1=-20
             self.LeakCurrentLv2=-50

+ 2 - 0
LIB/MIDDLE/SaftyCenter/DataDiag_Static/main.py

@@ -41,6 +41,7 @@ def diag_cal():
     with DBRead as DBRead:
         df_Diag_Ram = DBRead.getdata('start_time','end_time','product_id','code','level','info','advice','Batpos',tablename=tablename2,factory='骑享',sn='',timename='',st='',sp='')
     df_Diag_Ram=df_Diag_Ram.dropna(how='any')
+    df_Diag_Ram=df_Diag_Ram.reset_index(drop=True)
     
     for sn in SNnums:#SN遍历
         print(sn)
@@ -284,6 +285,7 @@ if __name__ == "__main__":
     with DBRead as DBRead:
         df_Diag_Ram = DBRead.getdata('start_time','end_time','product_id','code','level','info','advice','Batpos','factory',tablename=tablename2,factory='',sn='',timename='',st='',sp='')
     df_Diag_Ram=df_Diag_Ram.dropna(how='any')
+    df_Diag_Ram=df_Diag_Ram.reset_index(drop=True)
     # result=pd.read_csv(r'D:\Work\Code_write\data_analyze_platform\USER\01Screen_Problem\result.csv',encoding='gbk')
 
     #定时任务.......................................................................................................................................................................