浏览代码

更改析锂表单

qingfeng 3 年之前
父节点
当前提交
014abbbfe4
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2 3
      LIB/MIDDLE/CellStateEstimation/BatSafetyWarning/main.py

+ 2 - 3
LIB/MIDDLE/CellStateEstimation/BatSafetyWarning/main.py

@@ -120,14 +120,13 @@ def saftywarning_cal():
         db='qx_cas'
         mode=2
         tablename1='cellstateestimation_intershort'
-        tablename2=''   #析锂表单
+        tablename2='mechanism_liplated'   #析锂表单
         tablename3='cellstateestimation_uniform_socvoltdiff'
         DBRead=DBDownload.DBDownload(host, port, db, user, password,mode)
         with DBRead as DBRead:
             df_short=DBRead.getdata('time_sp,sn,short_current', tablename=tablename1, sn=sn, timename='time_sp', st=start_time1, sp=end_time)
-            # df_liplated=DBRead.getdata('time,sn,liplated,lipltd_amount', tablename=tablename2, sn=sn, timename='time_sp', st=start_time2, sp=end_time)
+            df_liplated=DBRead.getdata('time,sn,liplated,lipltd_amount', tablename=tablename2, sn=sn, timename='time_sp', st=start_time2, sp=end_time)
             df_uniform=DBRead.getdata('time,sn,cellsoc_diff,cellmin_num', tablename=tablename3, sn=sn, timename='time', st=start_time1, sp=end_time)
-            df_liplated=pd.DataFrame()
         
         #获取sn的故障RAM
         df_fault_ram_sn=df_fault_ram[df_fault_ram['product_id']==sn]