fix: 加快竞对信号和采样点生成

This commit is contained in:
nixevol
2026-10-15 16:03:29 +08:00
parent 6227cef264
commit 609b1e39b8
5 changed files with 52 additions and 30 deletions
+5 -1
View File
@@ -161,7 +161,11 @@ def main(settings=None, progress=None):
progress(0, total_steps, "开始处理市场网格")
if worker_count == 1:
for index, market in enumerate(markets, start=1):
outcome = process_market(market, pixel_width, pixel_height, config.OUTPUT_DIR)
def report(message, completed=index - 1):
if progress:
progress(completed, total_steps, message)
outcome = process_market(market, pixel_width, pixel_height, config.OUTPUT_DIR, report)
outcomes.append(outcome)
if progress:
progress(index, total_steps, f"已完成 {market.name}")