feat: 노을 점수 맑은 하늘 55점으로 올리고 공기 보정은 아주 뿌옇거나 습한 날만 깎도록 완화
This commit is contained in:
1 parent
3e376ae4b8
commit
cd6769ccef
4 files changed
+12
-12
No files matched your search
@@ -160,7 +160,7 @@ def test_score_rows_apply_air_at_sunset_and_keep_cloud_score_without_air():
|
||||
hourly = {("R", hour): SimpleNamespace(humidity=90, rain_prob=0)}
|
||||
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.6 * 0.75)
|
||||
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)}
|
||||
assert sky_service._score_rows(region, today, clouds, now, rain, {})[0]["score"] == min(100, round(plain * 1.15))
|
||||
|
||||
|
||||
Reference in new issue
Block a user