Say what each season is: the note on an estimate ends that this is the usual window, not a closure; month lists and the figures notes tell estimated from the climate and similar trails from set by judgement from pages that differ; the changelog no longer says the glossary gives the test figures

This commit is contained in:
swaits committed 2026-11-20 14:38:44 -07:00
1 parent c3d43f41a7
commit e6c2f371fc
12 files changed
+91 -25

No files matched your search

+11 -4
View File
@@ -126,14 +126,21 @@ def _month_list(m):
def month_note(name):
def note(recs, records):
est = sum(1 for r in recs if facets.season_estimated(r))
unstated = [r for r in recs if facets.season_estimated(r)]
est = len(unstated)
stated = len(recs) - est
if not est:
return f"A source states the season for all {stated}."
kinds = {facets.season_kind(r) for r in unstated}
one = ("estimated from the climate and similar trails" if kinds == {"estimated"}
else "set by judgement from pages that differ" if kinds == {"judged"} else "")
if not stated:
return "No source states the season for these, so each is estimated from climate."
return (f"A source states the season for {stated} of these. For the other {est} it is "
f"estimated from climate, and marked.")
return (f"No source states the season for these, so each is {one}." if one
else f"No source states the season for these: {facets.season_unstated_clause(unstated)}.")
if one:
return f"A source states the season for {stated} of these. For the other {est} it is {one}, and marked."
return (f"A source states the season for {stated} of these. For the other {est}, "
f"{facets.season_unstated_clause(unstated)}, and marked.")
return note