Add three named trails, narrow the five-day rule, and record four near-misses
The Selway River Trail (50 mi), the Silver Moccasin Trail (51 mi) and the Wind River Highline Trail (64 mi) are new. The rules now say the five days count only for hard or cross-country routes, that a named trail with its own published length is listed even on a longer listed trail, and that a loop reached by a stem shows its published figure while the floor is tested on distinct miles. The Skyline Trail in the Pecos Wilderness waits on a fire closure. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
7fa0d5ce77
commit
e5a12129ef
33 files changed
+426
-31
No files matched your search
Binary file not shown.
|
After Width: | Height: | Size: 23 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 23 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 20 KiB |
+2
-2
@@ -373,8 +373,8 @@ site calls them trails.</p>
|
||||
<p>A trail is listed when it is a named, continuous walk, or a named loop, of at least 50 miles (80 km)
|
||||
in the United States or Canada. It is either an official trail, looked after as one trail by a land agency or
|
||||
a trail association, or a route: {esc(facets.ROUTE_DEFINITION[0].lower() + facets.ROUTE_DEFINITION[1:])}
|
||||
{routes} of the {n} trails are routes. The length is the end-to-end length of the trail’s canonical path, and the
|
||||
trail must be walkable from one end to the other today, on foot. A ferry, shuttle or bus link that the holder or the route’s author names as the way through does not rule a trail out, and the maintainer judges each case. Every trail or route needs a published length; one with no stated length is not listed. The length rule is at least 50 miles, or, for an author’s route that is short on miles, at least five days as its author gives the trip, and the five days never replace a published length; cross-country travel, route finding and hard terrain count in that judgement. Nothing harder than Class 3 may be required, apart from a few short Class 4 scrambles. A route that needs a rope, a belay or rock-climbing skill is not listed, unless that section is optional and the record says so. A National Scenic Trail is listed unless it cannot be walked
|
||||
{routes} of the {n} trails are routes. The length shown is the published figure for walking the whole trail from end to end, and for a loop reached by a stem it includes the stem both ways. The
|
||||
trail must be walkable from one end to the other today, on foot. A ferry, shuttle or bus link that the holder or the route’s author names as the way through does not rule a trail out, and the maintainer judges each case. Every trail or route needs a published length; one with no stated length is not listed. The length rule is at least 50 miles, or, for an author’s route that is short on miles, at least five days as its author gives the trip. The five days count only for an author’s route that is mostly cross-country or on hard terrain: a trail trip that a guidebook paces over five or more days does not qualify. The five days never replace a published length. A trail with its own name and its own published length is listed even where it lies on a longer listed trail, as the John Muir Trail lies on the Pacific Crest Trail; a guidebook’s cut of a longer trail is not. A loop reached by a stem is shown at the published figure, which walks the stem both ways, and its note gives the length with the stem counted once; the floor is tested on the length with nothing counted twice, so an out-and-back is judged one way. Nothing harder than Class 3 may be required, apart from a few short Class 4 scrambles. A route that needs a rope, a belay or rock-climbing skill is not listed, unless that section is optional and the record says so. A National Scenic Trail is listed unless it cannot be walked
|
||||
through, and so are a few well-known multi-day trails between 37 and 50 miles (60 and 80 km).</p>
|
||||
<p>Each record has a <em>tier</em>, which says why it is listed. A record can also be <em>held</em>: listed,
|
||||
but with something about it not yet settled, which its note says.</p>
|
||||
|
||||
+5
-2
@@ -19,8 +19,11 @@ REAL_ROOT = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__fi
|
||||
# Ordered as the inclusion rule states them; the page follows this order.
|
||||
REASONS = {
|
||||
"below-floor": ("Below the 50 mile floor",
|
||||
"The floor for this list is 50 miles (80 km), or, for an author's route that is short on miles, five days as its author gives the trip, "
|
||||
"apart from a few well known shorter trails. A listed trail or route also needs a published length."),
|
||||
"The floor for this list is 50 miles (80 km), or, for an author's route that is mostly cross-country or on hard terrain and short on miles, five days as its author gives the trip, "
|
||||
"apart from a few well known shorter trails. A trail trip that a guidebook paces over five or more days does not qualify on the days. "
|
||||
"The floor is tested on the length with nothing counted twice, so a loop reached by a stem is counted with the stem once and an out-and-back is judged one way. "
|
||||
"A trail with its own name and its own published length is listed even where it lies on a longer listed trail; a guidebook's cut of a longer trail is not. "
|
||||
"A listed trail or route also needs a published length."),
|
||||
"rail-trail-or-towpath": ("Rail trails and canal towpaths",
|
||||
"Paths made mainly for cycling, such as gravel rail trails and canal towpaths, are not listed."),
|
||||
"driving-route": ("Mainly driving or motor routes",
|
||||
|
||||
@@ -132,7 +132,7 @@ def method_page(records, site, repo_root):
|
||||
f"length was measured and checked against the published length."), [("Trails", "/"), ("About", "/about/")])
|
||||
+ f"""<div class="container section place"><div class="prose">
|
||||
<h2>Length</h2>
|
||||
<p>A trail’s length here is the end-to-end length of its canonical path: one walk from one end to the other, taking one branch at a split, leaving out side trails and counting no stretch twice. It is the figure the trail’s holder or author gives for that walk, and each record says where it comes from. A trail that cannot be walked from end to end today is not listed, but a ferry, shuttle or bus link that the holder or the route’s author names as the way through does not rule one out, and the track has a gap there. Every trail or route needs a published length; one with no stated length is not listed. The floor is 50 miles, or, for an author’s route that is short on miles, at least five days as its author gives the trip, and the five days never replace a published length; cross-country travel, route finding and hard terrain count in that judgement. Nothing harder than Class 3 may be required, apart from a few short Class 4 scrambles. A route that needs a rope, a belay or rock-climbing skill is not listed, unless that section is optional and the record says so. The lists and pages show the length in miles with kilometres after.</p>
|
||||
<p>A trail’s length here is the published figure for walking it from one end to the other, taking one branch at a split and leaving out side trails. For a loop reached by a stem that includes the stem both ways, and the record’s note gives the length with the stem counted once. Only the dataset’s test for the 50 mile floor counts distinct miles, so an out-and-back is judged one way. It is the figure the trail’s holder or author gives for that walk, and each record says where it comes from. A trail that cannot be walked from end to end today is not listed, but a ferry, shuttle or bus link that the holder or the route’s author names as the way through does not rule one out, and the track has a gap there. Every trail or route needs a published length; one with no stated length is not listed. The floor is 50 miles, or, for an author’s route that is short on miles, at least five days as its author gives the trip. The five days count only for an author’s route that is mostly cross-country or on hard terrain: a trail trip that a guidebook paces over five or more days does not qualify. The five days never replace a published length. A trail with its own name and its own published length is listed even where it lies on a longer listed trail, as the John Muir Trail lies on the Pacific Crest Trail; a guidebook’s cut of a longer trail is not. Nothing harder than Class 3 may be required, apart from a few short Class 4 scrambles. A route that needs a rope, a belay or rock-climbing skill is not listed, unless that section is optional and the record says so. The lists and pages show the length in miles with kilometres after.</p>
|
||||
<p>Some holders also publish a larger figure for a whole system, or a planned total. A record keeps it apart as the whole system, with what it counts, and no list, length band or time estimate uses it. {n_system} of the {n} records have one. A trail that can be walked through but is partly unbuilt keeps the holder’s end-to-end route as its length and gives the built length beside it. {n_built} of the {n} records give one.</p>
|
||||
<p>Where a track is included, its length is measured along the track as a geodesic length and compared with the published figure. The difference is the measured length minus the published length, as a percent of the published length. Track ends within 100 metres are joined, and the number of parts left is shown.</p>
|
||||
<p>Across the {len(ver)} measured tracks, the middle difference is {mid:.1f} percent.</p>
|
||||
|
||||
+2
-2
@@ -1155,8 +1155,8 @@ def record_block(rec):
|
||||
rows += [
|
||||
Markup(f'<div><dt>Where</dt><dd>{where}</dd></div>'),
|
||||
Markup(f'<div><dt>Length</dt><dd>{words.length(rec["length_km"], "inline", rec["derived"]["length_mi"])}'
|
||||
f'<small>{esc(common.sentence(rec.get("length_note", "")))} The end-to-end length of the trail’s '
|
||||
f'canonical path, a check value, not measured from the track.</small></dd></div>'),
|
||||
f'<small>{esc(common.sentence(rec.get("length_note", "")))} The published length of walking the whole '
|
||||
f'trail from end to end (for a loop reached by a stem, with the stem both ways), a check value, not measured from the track.</small></dd></div>'),
|
||||
fact("Built length", common.built_text(rec), "How much of the trail is built, as the holder states it.")
|
||||
if rec.get("built_km") else "",
|
||||
fact("Whole system", Markup(f'{words.length(rec["system_km"], "inline")}, counting '
|
||||
|
||||
@@ -114,7 +114,7 @@ class HistorySectionTest(unittest.TestCase):
|
||||
|
||||
def test_real_records_all_show_their_history(self):
|
||||
recs = records.load_records()
|
||||
self.assertEqual(len(recs), 217)
|
||||
self.assertEqual(len(recs), 220)
|
||||
for rec in recs:
|
||||
part = trail.history_section(rec)
|
||||
self.assertIn("History of this record", part, rec["id"])
|
||||
|
||||
@@ -394,7 +394,7 @@ class RealDocumentsTest(unittest.TestCase):
|
||||
counter = TableCounter()
|
||||
counter.feed(md.render(read_doc("README.md")))
|
||||
counter.close()
|
||||
self.assertEqual(counter.counts, [142, 75])
|
||||
self.assertEqual(counter.counts, [145, 75])
|
||||
|
||||
def test_readme_num_class_present(self):
|
||||
self.assertIn('class="num"', md.render(read_doc("README.md")))
|
||||
|
||||
@@ -90,7 +90,7 @@ class BuiltSiteTest(unittest.TestCase):
|
||||
def test_one_detail_page_per_record(self):
|
||||
found = [d for d in os.listdir(os.path.join(OUT, "trails"))
|
||||
if os.path.isfile(os.path.join(OUT, "trails", d, "index.html"))]
|
||||
self.assertEqual(len(self.records), 217)
|
||||
self.assertEqual(len(self.records), 220)
|
||||
self.assertEqual(sorted(found), sorted(r["id"] for r in self.records))
|
||||
self.assertTrue(os.path.isfile(os.path.join(OUT, "index.html")))
|
||||
|
||||
|
||||
@@ -13,10 +13,10 @@ class RecordsTest(unittest.TestCase):
|
||||
cls.recs = records.load_records()
|
||||
|
||||
def test_counts(self):
|
||||
self.assertEqual(len(self.recs), 217)
|
||||
self.assertEqual(len(self.recs), 220)
|
||||
self.assertEqual(sum(r["derived"]["kind"] == "route" for r in self.recs), 75)
|
||||
self.assertEqual(sum(r["derived"]["kind"] == "designated" for r in self.recs), 142)
|
||||
self.assertEqual(sum(r["derived"]["has_line"] for r in self.recs), 122)
|
||||
self.assertEqual(sum(r["derived"]["kind"] == "designated" for r in self.recs), 145)
|
||||
self.assertEqual(sum(r["derived"]["has_line"] for r in self.recs), 124)
|
||||
|
||||
def test_sorted_by_id(self):
|
||||
ids = [r["id"] for r in self.recs]
|
||||
|
||||
Reference in new issue
Block a user