Merge origin/main into main-2: Open-Meteo 구름 20·100km·모델 2개 구조에 노을 하늘 상황 판정 맞춤

- 하늘 상황 판정·테스트를 구름 지점 2곳(20·100km), 모델 2개(JMA·ICON) 기준으로
- Open-Meteo 보조값 호출(fetch_weather)도 장애 대처(8초 끊기·2분 건너뛰기) 적용
- worker: 행사 수집 스케줄과 Open-Meteo 보조값 스케줄 둘 다 유지
- 지수 seed: main 의 한계 설명 + main-2 의 점수 구간 설명
- 옛 data-pipeline 문서는 삭제 유지, 내용은 openmeteo-data.md·데이터_흐름.html 에 반영
This commit is contained in:
minaChoi committed 2026-10-07 14:04:18 +09:00
commit 3f8f7daeb1
21 files changed
+1068 -111

No files matched your search

+13 -13
View File
@@ -10,21 +10,21 @@ CLEAR = Layers(0, 0, 0)
def test_high_clouds_overhead_and_clear_horizon_is_best():
canvas = Layers(low=0, mid=20, high=50)
assert score(canvas, canvas, CLEAR) == 100
assert score(canvas, CLEAR) == 100
def test_clear_sky_is_only_soft():
assert grade(score(CLEAR, CLEAR, CLEAR)) is SkyGrade.SOFT
assert grade(score(CLEAR, CLEAR)) is SkyGrade.SOFT
def test_low_clouds_toward_sun_block_the_light():
canvas = Layers(low=0, mid=20, high=50)
assert grade(score(canvas, canvas, Layers(low=90, mid=50, high=0))) is SkyGrade.GRAY
assert grade(score(canvas, Layers(low=90, mid=50, high=0))) is SkyGrade.GRAY
def test_overcast_low_clouds_is_gray():
gray = Layers(low=100, mid=100, high=100)
assert grade(score(gray, gray, gray)) is SkyGrade.GRAY
assert grade(score(gray, gray)) is SkyGrade.GRAY
def test_confidence_from_model_spread():
@@ -48,10 +48,10 @@ def test_sunset_best_times_order():
def test_reason_names_what_decided_the_score():
canvas = Layers(low=0, mid=20, high=50)
assert "알맞게" in reason(canvas, canvas, CLEAR)
assert "먼 하늘" in reason(canvas, canvas, Layers(low=90, mid=50, high=0))
assert "낮은 구름" in reason(Layers(100, 0, 0), Layers(80, 0, 0), CLEAR)
assert "거의 없어" in reason(CLEAR, CLEAR, CLEAR)
assert "알맞게" in reason(canvas, CLEAR)
assert "먼 하늘" in reason(canvas, Layers(low=90, mid=50, high=0))
assert "낮은 구름" in reason(Layers(100, 0, 0), CLEAR)
assert "거의 없어" in reason(CLEAR, CLEAR)
def test_verdict_bands_and_gray_label_is_not_weather_word():
@@ -70,11 +70,11 @@ def test_sunset_timeline_runs_golden_to_blue():
def test_situation_follows_reason_order():
from common.enums import SkySituation
clear, glow = Layers(0, 0, 0), Layers(0, 40, 50)
assert situation(clear, clear, clear) is SkySituation.FEW
assert situation(glow, glow, clear) is SkySituation.GLOW
assert situation(Layers(0, 90, 95), Layers(0, 90, 95), clear) is SkySituation.THICK
assert situation(Layers(80, 0, 0), Layers(70, 0, 0), clear) is SkySituation.LOW_CLOUD
assert situation(glow, glow, Layers(70, 0, 0)) is SkySituation.COVERED
assert situation(clear, clear) is SkySituation.FEW
assert situation(glow, clear) is SkySituation.GLOW
assert situation(Layers(0, 90, 95), clear) is SkySituation.THICK
assert situation(Layers(80, 0, 0), clear) is SkySituation.LOW_CLOUD
assert situation(glow, Layers(70, 0, 0)) is SkySituation.COVERED
def test_ranking_summary_only_when_most_spots_share_a_situation():