refactor(factors): 拆分 engine.py 为模块化包
将单文件 engine.py (1064行) 拆分为 engine/ 包: - 数据规格、路由器、计划器、计算引擎、因子引擎分离 - 保持向后兼容,API 无变化
This commit is contained in:
25
src/factors/engine/__init__.py
Normal file
25
src/factors/engine/__init__.py
Normal file
@@ -0,0 +1,25 @@
|
||||
"""因子计算引擎模块。
|
||||
|
||||
提供完整的因子计算引擎组件:
|
||||
- DataSpec: 数据规格定义
|
||||
- ExecutionPlan: 执行计划
|
||||
- DataRouter: 数据路由器
|
||||
- ExecutionPlanner: 执行计划生成器
|
||||
- ComputeEngine: 计算引擎
|
||||
- FactorEngine: 因子计算引擎(统一入口)
|
||||
"""
|
||||
|
||||
from src.factors.engine.data_spec import DataSpec, ExecutionPlan
|
||||
from src.factors.engine.data_router import DataRouter
|
||||
from src.factors.engine.planner import ExecutionPlanner
|
||||
from src.factors.engine.compute_engine import ComputeEngine
|
||||
from src.factors.engine.factor_engine import FactorEngine
|
||||
|
||||
__all__ = [
|
||||
"DataSpec",
|
||||
"ExecutionPlan",
|
||||
"DataRouter",
|
||||
"ExecutionPlanner",
|
||||
"ComputeEngine",
|
||||
"FactorEngine",
|
||||
]
|
||||
Reference in New Issue
Block a user