Explorar o código

更改读取一致性结果库

qingfeng %!s(int64=3) %!d(string=hai) anos
pai
achega
6fc1ef940d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      LIB/MIDDLE/CellStateEstimation/BatSafetyWarning/main.py

+ 1 - 1
LIB/MIDDLE/CellStateEstimation/BatSafetyWarning/main.py

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