|
@@ -85,7 +85,7 @@ def saftywarning_cal():
|
|
|
DBRead=DBDownload.DBDownload(host, port, db, user, password,mode)
|
|
|
with DBRead as DBRead:
|
|
|
df_soh=DBRead.getdata('time_st,sn,soh,cellsoh', tablename='cellstateestimation_soh', sn=sn, timename='time_sp', st=start_time, sp=end_time)
|
|
|
- df_uniform=DBRead.getdata('time,sn,cellsoc_diff,cellvolt_diff,cellmin_num,cellmax_num', tablename='cellstateestimation_uniform_socvoltdiff', sn=sn, timename='time', st=start_time1, sp=end_time)
|
|
|
+ df_uniform=DBRead.getdata('time,sn,cellsoc_diff,cellvolt_diff,cellmin_num,cellmax_num,cellvolt_rank', tablename='cellstateestimation_uniform_socvoltdiff', sn=sn, timename='time', st=start_time1, sp=end_time)
|
|
|
df_uniform.loc[0,'cellvolt_rank']=str([1]*20)
|
|
|
df_voltsigma=pd.DataFrame()
|
|
|
if not df_bms.empty:
|