Drop six places from the pages and the records, and widen the twin rule to ranges

The deny-list in tools/place_trails.py now names, with a reason beside each, the Longfellow
Mountains, Finger Lakes, Gore Range, Mosquito Range, Great Western Divide and Russian
Wilderness. They are removed from places.toml and from every record that named them, history
entries included, so nothing is left to link to. A range that holds exactly the trails of a park
and shares its name stem (Great Smoky Mountains and Great Smoky Mountains National Park,
Olympic Mountains and Olympic National Park) now gets no page either, in the tool and in the
builder, and is removed from records the same way.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
swaitsandClaude Sonnet 5.5 committed 2026-11-20 12:23:23 -07:00
1 parent 3b745f706c
commit 75e5de5c16
31 files changed
+127 -316

No files matched your search

+20
View File
@@ -256,6 +256,26 @@ class ProposalTest(unittest.TestCase):
stated = {("park", "alpha"): {"a", "b", "z"}, ("wilderness", "alpha-wilderness"): {"a", "b"}}
self.assertEqual(P.doubled_places(stated, names), set())
def test_a_range_with_a_parks_trails_and_name_stem_is_not_a_second_page(self):
names = {("park", "great-smoky-mountains-national-park"): "Great Smoky Mountains National Park",
("range", "great-smoky-mountains"): "Great Smoky Mountains",
("park", "olympic-national-park"): "Olympic National Park",
("range", "olympic-mountains"): "Olympic Mountains",
("park", "grand-teton-national-park"): "Grand Teton National Park",
("range", "teton-range"): "Teton Range"}
sets = {k: {"a", "b", "c"} for k in names}
self.assertEqual(P.doubled_places(sets, names),
{("range", "great-smoky-mountains"), ("range", "olympic-mountains")})
sets[("range", "olympic-mountains")] = {"a", "b", "c", "d"}
self.assertEqual(P.doubled_places(sets, names), {("range", "great-smoky-mountains")})
def test_the_deny_list_names_every_place_that_gets_no_page_with_a_reason(self):
for key in (("range", "gmba-v2", "12330"), ("range", "gmba-v2", "15906"),
("range", "gmba-v2", "11356"), ("range", "gmba-v2", "17612"),
("range", "gmba-v2", "17240"), ("wilderness", "wilderness-connect", "507")):
self.assertIn(key, P.DENY)
self.assertGreater(len(P.DENY[key]), 20)
def test_a_denied_place_is_not_in_the_catalogue(self):
arch = outline("park", "JEFF", "Gateway Arch National Park", self.park.geometry)
keep = outline("park", "YOSE", "Yosemite National Park", self.range.geometry)