Przeglądaj źródła

fault_detection

zhuxi 2 lat temu
rodzic
commit
89ee4ae467
1 zmienionych plików z 3 dodań i 2 usunięć
  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