feat: 노을 공기 보정을 평소 공기 기준점 중심으로 바꿔 맑은 날 점수가 한 점에 몰리지 않게

This commit is contained in:
skkim committed 2026-10-08 11:59:08 +09:00
1 parent 91a86a2c10
commit 3857ef8d14
4 files changed
+24 -14

No files matched your search

+1 -1
View File
@@ -161,7 +161,7 @@ def test_score_rows_apply_air_at_sunset_and_keep_cloud_score_without_air():
om = {("R", sky_service._nearest_slot(hour)): SimpleNamespace(visibility_m=5000)}
hazy = sky_service._score_rows(region, today, clouds, now, hourly, om)[0]["score"]
assert hazy == round(plain * 0.8 * 0.85)
rain = {("R", hour - timedelta(hours=3)): SimpleNamespace(humidity=50, rain_prob=80), ("R", hour): SimpleNamespace(humidity=50, rain_prob=10)}
rain = {("R", hour - timedelta(hours=3)): SimpleNamespace(humidity=60, rain_prob=80), ("R", hour): SimpleNamespace(humidity=60, rain_prob=10)}
assert sky_service._score_rows(region, today, clouds, now, rain, {})[0]["score"] == min(100, round(plain * 1.15))