This commit is contained in:
sunbiz1024
2025-10-06 09:38:16 +08:00
committed by Windpicker-owo
parent e65ab14f94
commit 950b086063
66 changed files with 489 additions and 497 deletions

View File

@@ -313,7 +313,9 @@ class EnergyManager:
# 确保 score 是 float 类型
if not isinstance(score, int | float):
logger.warning(f"计算器 {calculator.__class__.__name__} 返回了非数值类型: {type(score)},跳过此组件")
logger.warning(
f"计算器 {calculator.__class__.__name__} 返回了非数值类型: {type(score)},跳过此组件"
)
continue
component_scores[calculator.__class__.__name__] = float(score)