Commit 78b2c84d authored by 赵杰's avatar 赵杰

图片

parent 4d786890
......@@ -193,9 +193,12 @@ class DataIntegrate:
propose_fund_data_list = []
propose_fund_evaluation = portfolio_diagnose.propose_fund_evaluation()
propose_radar_chart_data = portfolio_diagnose.propose_fund_radar()
with futures.ProcessPoolExecutor(os.cpu_count()) as executor:
res = executor.map(gen_radar_chart, propose_radar_chart_data)
res = list(res)
# with futures.ProcessPoolExecutor(os.cpu_count()) as executor:
# res = executor.map(gen_radar_chart, propose_radar_chart_data)
res = []
for chart_data in propose_radar_chart_data:
r = draw_index_combination_chart(chart_data)
res.append(r)
for i in range(len(propose_fund_evaluation)):
propose_fund_data_list.append({
'fund_name': propose_fund_evaluation[i]['name'],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment