Parcourir la source

docs 注释和报错打印删除

hzh il y a 2 semaines
Parent
commit
d0b121d0df

+ 0 - 6
models_processing/model_predict/model_prediction_ml.py

@@ -15,11 +15,6 @@ from common.processing_data_common import get_xxl_dq
 
 app = Flask('model_prediction_ml——service')
 
-"""
-于model_training_lightgbm.py
-1. 支持特征保存模型预测
-"""
-
 def str_to_list(arg):
     if arg == '':
         return []
@@ -134,7 +129,6 @@ def model_prediction_ml():
         success = 1
     except Exception as e:
         my_exception = traceback.format_exc()
-        print(my_exception)
         my_exception.replace("\n", "\t")
         result['msg'] = my_exception
     end_time = time.time()

+ 0 - 1
models_processing/model_train/model_training_ml.py

@@ -122,7 +122,6 @@ def model_training_ml():
         insert_pickle_model_into_mongo(model, args, features=features)
         success = 1
     except Exception as e:
-        print(e)
         my_exception = traceback.format_exc()
         my_exception.replace("\n", "\t")
         result['msg'] = my_exception

+ 0 - 20
post_processing/post_process.py

@@ -8,25 +8,6 @@ from common.database_dml import get_data_from_mongo, insert_data_into_mongo
 
 app = Flask('post_processing——service')
 
-"""
-id = "${id}"
-
-cap = ${cap}
-
-参数
-{
-    'mongodb_database': 'hzh_ftp',
-    'mongodb_read_table': f'{id}_PRED',
-    'mongodb_write_table': f'{id}_PRED',
-    'col_time':  "dateTime",
-    'smooth_window': 3
-    'plant_type': 'solar',
-    'mongodb_nwp_table': f'{id}_NWP_D1'
-}
-
-"""
-
-
 def get_data(args):
     df = get_data_from_mongo(args)
     col_time = args['col_time']
@@ -96,7 +77,6 @@ def data_join():
         success = 1
     except Exception as e:
         my_exception = traceback.format_exc()
-        print(my_exception)
         my_exception.replace("\n", "\t")
         result['msg'] = my_exception
     end_time = time.time()