|
@@ -2,7 +2,7 @@ import pandas as pd
|
|
import pymysql
|
|
import pymysql
|
|
from LIB.BACKEND import DBManager, Log
|
|
from LIB.BACKEND import DBManager, Log
|
|
from apscheduler.schedulers.blocking import BlockingScheduler
|
|
from apscheduler.schedulers.blocking import BlockingScheduler
|
|
-import time, datetime
|
|
|
|
|
|
+import datetime
|
|
from LIB.MIDDLE.CellStateEstimation.Common.V1_0_1 import DBDownload
|
|
from LIB.MIDDLE.CellStateEstimation.Common.V1_0_1 import DBDownload
|
|
from LIB.MIDDLE.CellStateEstimation.Common.V1_0_1 import log
|
|
from LIB.MIDDLE.CellStateEstimation.Common.V1_0_1 import log
|
|
import CBMSBatInterShort
|
|
import CBMSBatInterShort
|
|
@@ -163,12 +163,9 @@ def saftywarning_cal():
|
|
with DBRead as DBRead:
|
|
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_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,liplated_amount', tablename=tablename2, sn=sn, timename='time', st=start_time2, sp=end_time)
|
|
df_liplated=DBRead.getdata('time,sn,liplated,liplated_amount', tablename=tablename2, sn=sn, timename='time', st=start_time2, sp=end_time)
|
|
- # df_uniform=DBRead.getdata('time,sn,cellsoc_diff,cellvolt_diff,cellmin_num,cellmax_num,'cellvolt_rank', tablename=tablename3, sn=sn, timename='time', st=start_time1, sp=end_time)
|
|
|
|
- # df_voltsigma=DBRead.getdata('time,sn,VolOl_Uni,VolChng_Uni', tablename=tablename4, sn=sn, timename='time', st=start_time3, sp=end_time)
|
|
|
|
|
|
+ df_uniform=DBRead.getdata('time,sn,cellsoc_diff,cellvolt_diff,cellmin_num,cellmax_num,cellvolt_rank', tablename=tablename3, sn=sn, timename='time', st=start_time3, sp=end_time)
|
|
|
|
+ df_voltsigma=DBRead.getdata('time,sn,VolOl_Uni,VolChng_Uni', tablename=tablename4, sn=sn, timename='time', st=start_time3, sp=end_time)
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
#获取sn的故障RAM
|
|
#获取sn的故障RAM
|
|
df_fault_ram_sn=df_fault_ram[df_fault_ram['product_id']==sn]
|
|
df_fault_ram_sn=df_fault_ram[df_fault_ram['product_id']==sn]
|
|
|
|
|