重构: 切换存储至SQLite,启用INI配置与API Key校验
This commit is contained in:
@ -309,7 +309,7 @@ class DataProcessor:
|
||||
].std()
|
||||
|
||||
|
||||
def process_main(data_file: Path, config_file: Path, task_id: str | None = None) -> None:
|
||||
def process_main(data_file: Path, config_file: Path, output_dir: Path, task_id: str | None = None) -> DataProcessor:
|
||||
"""Main function to run the pipeline."""
|
||||
config = load_config(config_file)
|
||||
# 优先使用 task_id,否则退回文件 stem
|
||||
@ -319,5 +319,7 @@ def process_main(data_file: Path, config_file: Path, task_id: str | None = None)
|
||||
processor = DataProcessor(config, df)
|
||||
processor.strategy_selection()
|
||||
processor.process()
|
||||
reporting.generate_reports(name, processor, config)
|
||||
reporting.generate_reports(name, processor, config, output_dir)
|
||||
logger.info("Processing complete")
|
||||
|
||||
return processor # 返回processor对象
|
||||
|
||||
Reference in New Issue
Block a user