nep框架搭建

This commit is contained in:
2025-12-08 17:48:03 +08:00
parent 0b6537a810
commit 5057d18e98
5 changed files with 232 additions and 48 deletions

View File

@@ -10,10 +10,14 @@ class NEPDriver:
self.logger = logging.getLogger("NEP_Auto")
self.root = Path(".")
# 1. 加载配置
# 1. 加载所有配置
self.config_sys = self._load_yaml("config/system.yaml")
self.config_param = self._load_yaml("config/param.yaml")
# 【新增】加载 machine 配置
self.config_machine = self._load_yaml("config/machine.yaml")
self.logger.info(f"项目名称: {self.config_sys.get('project_name')}")
self.logger.info(f"计算环境: {self.config_machine.get('current_system')}")
# 2. 初始化状态管理器
self.status = StatusManager(self.root / "workspace")