Browse Source

fault_detection

zhuxi 2 years ago
parent
commit
89ee4ae467
1 changed files with 3 additions and 2 deletions
  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