瀏覽代碼

fault_detection

zhuxi 2 年之前
父節點
當前提交
89ee4ae467
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      LIB/MIDDLE/FaultDetection/V1_0_2/main_pred.py

+ 3 - 2
LIB/MIDDLE/FaultDetection/V1_0_2/main_pred.py

@@ -51,12 +51,13 @@ def diag_cal():
         "mysql+pymysql://{}:{}@{}:{}/{}?charset=utf8".format(
             user, parse.quote_plus(password), host, port, db
         ))
-
-
+        
     #调用主函数................................................................................................................................................................
     for sn in SNnums:
         try:
             group=sn[:5]
+            if group=='UD020':
+                group='MGMCL'
             df_data = dbManager.get_data(sn=sn, start_time=start_time, end_time=end_time, data_groups=['bms'])
             data_bms = df_data['bms']
             data_bms['sn']=sn