|
@@ -12,7 +12,7 @@ from pandas.core.frame import DataFrame
|
|
|
import datacompy
|
|
|
from LIB.MIDDLE.SaftyCenter.Common import FeiShuData
|
|
|
from LIB.MIDDLE.SaftyCenter.Common import QX_BatteryParam
|
|
|
-from LIB.MIDDLE.SaftyCenter.Common import DBDownload as DB
|
|
|
+from LIB.MIDDLE.SaftyCenter.Common import DBDownload as DBDw
|
|
|
|
|
|
#...................................电池包电芯安全诊断函数......................................................................................................................
|
|
|
def diag_cal():
|
|
@@ -151,7 +151,7 @@ if __name__ == "__main__":
|
|
|
password='Qx@123456'
|
|
|
mode=2
|
|
|
tablename2='all_fault_info'
|
|
|
- DBRead = DB.DBDownload(host, port, db, user, password,mode)
|
|
|
+ DBRead = DBDw.DBDownload(host, port, db, user, password,mode)
|
|
|
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='')
|
|
|
# result=pd.read_csv(r'D:\Work\Code_write\data_analyze_platform\USER\01Screen_Problem\result.csv',encoding='gbk')
|