fix: 加快竞对信号和采样点生成
This commit is contained in:
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user