You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bringing in info about the waypoint number would be more foolproof. [117]+X01 to [118]+X02 via il.us066hischi 117{+X01} to 118{+X02} via il.us066hischi {+X01}118 to {+X02}119 via il.us066hischi +X01<118> to +X02<119> via il.us066hischi, etc.
The first 2 examples use usual starting-at-zero array indexing a programmer might expect, which matches the waypoint numbers shown in the HB.
The last 2 examples use a starting-at-one approach that matches line numbers you'd see when opening the file in a text editor, or GitHub.
Playing around with a few different styles of brackets here. IMO, regular parentheses should be avoided, due to I-95(42) style labels.
I just took a look around siteupdate.py, and only saw this method used in creating concurrencies.log. Is it used anywhere else?
I'm not seeing other uses of it. Do we want to introduce this fix or just make sure it doesn't happen by regular checking of the datacheck for duplicate waypoints? In the extreme, we could instead make duplicate waypoint labels a fatal error that causes the site update to terminate.
Downvoted. There are enough duplicate labels spread out around the world, and enough contributors with slow enough update schedules, that this could play havoc with maintaining a working site.
I don't really favor a fix for this now -- it's only used for concurrencies.log, which isn't something that gets or needs much attention at all. It's not crucial to my concurrency detection fixes, which are about done anyway.
Not worth the extra CPU time, RAM, or hassle of coding it.
Reopening due to a different thought:
Would it make more sense to format these as a .list file line? IE, [ME I-295 6 7] instead of [6 to 7 via me.i295]?
Activity
jteresco commentedon Nov 22, 2018
I'm not seeing other uses of it. Do we want to introduce this fix or just make sure it doesn't happen by regular checking of the datacheck for duplicate waypoints? In the extreme, we could instead make duplicate waypoint labels a fatal error that causes the site update to terminate.
michihdeu commentedon Nov 22, 2018
Seconded!
yakra commentedon Nov 23, 2018
Downvoted. There are enough duplicate labels spread out around the world, and enough contributors with slow enough update schedules, that this could play havoc with maintaining a working site.
I don't really favor a fix for this now -- it's only used for concurrencies.log, which isn't something that gets or needs much attention at all. It's not crucial to my concurrency detection fixes, which are about done anyway.
Not worth the extra CPU time, RAM, or hassle of coding it.
Feel free to close this.
jteresco commentedon Nov 23, 2018
Discussion about duplicate labels moving to the forum: http://forum.travelmapping.net/index.php?topic=2796.0
yakra commentedon Nov 26, 2018
Reopening due to a different thought:
Would it make more sense to format these as a .list file line? IE,
[ME I-295 6 7]instead of[6 to 7 via me.i295]?jteresco commentedon Dec 5, 2018
I'd say yes.