聚烯烃日度数据补全

This commit is contained in:
jingboyitiji 2025-03-28 13:13:04 +08:00
parent c7dac7586d
commit 27960c9083

View File

@ -388,14 +388,13 @@ def predict_main():
if __name__ == '__main__':
# global end_time
# 遍历2024-11-25 到 2024-12-3 之间的工作日日期
# for i_time in pd.date_range('2025-2-1', '2025-3-18', freq='B'):
# try:
# global_config['end_time'] = i_time.strftime('%Y-%m-%d')
# predict_main()
# except Exception as e:
# logger.info(f'预测失败:{e}')
# continue
for i_time in pd.date_range('2025-2-1', '2025-3-18', freq='B'):
try:
global_config['end_time'] = i_time.strftime('%Y-%m-%d')
predict_main()
except Exception as e:
logger.info(f'预测失败:{e}')
continue
# predict_main()
push_market_value()