清理调试日志:移除 BIAS_DEBUG/SCAN_DEBUG 临时日志,保留核心修正逻辑

This commit is contained in:
2569718930@qq.com
2026-05-25 03:52:07 +08:00
parent 446e303743
commit 6de29ed2e1
2 changed files with 12 additions and 43 deletions
-10
View File
@@ -1500,10 +1500,6 @@ def _analyze(
peak_first = int(first_peak_h or 14)
peak_last_h = int(last_peak_h or 17)
logger.info(
"BIAS_PRE city={} deb_val={} cur_temp={} max_so_far={} local_hour={}",
city, deb_val, cur_temp, max_so_far, _local_hour,
)
if (
deb_val is not None
and cur_temp is not None
@@ -1541,12 +1537,6 @@ def _analyze(
max_correction_clamped = max(-max_correction, min(max_correction, max_so_far_excess * max(0.3, weight)))
blended_correction = hourly_correction * 0.6 + max_correction_clamped * 0.4
logger.info(
"BIAS_DEBUG city={} hour={} current={} model_hourly={} hourly_bias={:.1f} "
"max_excess={:.1f} weight={:.2f} correction={:.1f} deb_before={}",
city, _local_hour, cur_temp, model_hourly_temp, hourly_bias,
_msf - deb_val, weight, blended_correction, deb_val,
)
deb_val = round(deb_val + blended_correction, 1)
if mu is not None:
mu = round(mu + blended_correction, 1)