|
@@ -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]
|