fix: 러닝각이 비·추위·낮 시간에도 위에 뜨던 것 — 활동 시간대(6~8시·19~22시) 밖 구간은 최대 50점, 비 확률 60% 이상 30점·70% 이상 0점, 체감 5° 미만 40점·0° 미만 0점, 강풍·돌풍·미세먼지·더위 상한, 점수 구간 문구 교체
- 지수 0점 조건에서 time_matches(활동 시간대 일치)를 볼 수 있게 함 (다른 각은 그대로) - 편한 체감 5~18°(최적 12°), 바람 잔잔 기준 3m/s·한계 8m/s - FAQ·각 계산기준 문서 갱신 (검토: Codex gpt-6-astra)
This commit is contained in:
1 parent
fb12a7dfb4
commit
d082e71316
7 files changed
+215
-18
No files matched your search
@@ -270,6 +270,8 @@ def _cond(r: dict) -> tuple[str, str, str]:
|
||||
return "비 소식이 있어", "비 소식이 있거나", "비 소식이 있으면"
|
||||
if r["field"] == "rain_before":
|
||||
return "앞서 내린 비가 없어", "앞서 내린 비가 없거나", "앞서 내린 비가 없으면"
|
||||
if r["field"] == "time_matches":
|
||||
return "활동 시간대가 아니라", "활동 시간대가 아니거나", "활동 시간대가 아니면"
|
||||
base = f"{_FIELD_TEXT[r['field']]} {r['value']}{_UNIT[r['field']]} {'이상' if r['op'] == '>=' else '미만'}"
|
||||
return f"{base}이라", f"{base}이거나", f"{base}이면"
|
||||
|
||||
@@ -358,6 +360,7 @@ def evaluate(definition, windows: list[list[Hour]], ctx: Context) -> Optional[Re
|
||||
"snow": "yes" if any(h.rain_type in (RainType.SNOW, RainType.SLEET) for h in hours) else "no",
|
||||
"rain": "yes" if raining else "no", "humidity": round(mean(h.humidity for h in hours)),
|
||||
"rain_before": "yes" if any(h < hours[0].hour for h in ctx.rain_hours) else "no",
|
||||
"time_matches": ctx.time_matches,
|
||||
}
|
||||
reason, cap = _zero(definition.zero_rules, agg)
|
||||
if reason is not None:
|
||||
|
||||
Reference in new issue
Block a user