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

+3 -2
View File
@@ -51,10 +51,11 @@ def season_cell(rec):
def figures_note(recs):
"""What the times and climbs of these trails mean, with the caveats the records state."""
est = sum(1 for r in recs if facets.time_days(r)[2])
unstated = sum(1 for r in recs if facets.season_estimated(r))
unstated = [r for r in recs if facets.season_estimated(r)]
parts = [f"Times that start with “About” are estimated from the length ({est} of these). "
"Otherwise a source states the time.",
f"Seasons that start with “About” are estimated from climate ({unstated} of these)." if unstated else "",
(f"Seasons that start with “About” are not stated by a page ({len(unstated)} of these): "
f"{facets.season_unstated_clause(unstated)}." if unstated else ""),
climb_caveat(recs)]
return " ".join(p for p in parts if p)