Skip to content

USA-only datachecks #351

Closed
Closed

Description

@yakra
  • C++: Rather than have each datacheck function check whether country == USA, check once then call all the functions.
  • If I really wanna get jiggy wit it, no need to dereference a bunch of pointers and then iterate thru & compare up to 3 chars of the country string when we know beforehand whether a route's system is in the USA, and can set a bool USA_flag...
    • C++: construct in Route::read_wpt; no need to recalculate for every point (easier, slightly less efficient)
    • C++: pass to Route::read_wpt from main & ReadWptThread; no need to recalculate for every route (more involved, more efficient)
    • Python: ...in the outermost datacheck loop
  • Resurrect US_BANNER (as US_LETTER?)
    for rg in `ls | grep -v _`; do grep -sv '^+' $rg/*/*.wpt | cut -f1 -d' ' | egrep ':\*?US[0-9]+[AB][/_(]|:\*?US[0-9]+[AB]$'; done
    • Python
    • C++
    • descriptor table
    • datacheck_always_error
    • wptedit
    • syserr.php
    • datacheck.php
    • add "letter " here
  • INTERSTATE_NO_HYPHEN does not account for leading *

Activity

  1. self-assigned this
    on Nov 13, 2020
  2. yakra commented on Nov 15, 2020

    @yakra
    ContributorAuthor

    grep & compare Jim's original US_BANNER results:

    diff \
    <(grep US_BANNER ~/TravelMapping/yakra/DataProcessing/siteupdate/python-teresco/2/logs/datacheck.log | sed 's~;~:~' | cut -f1 -d';' | sort) \
    <(for rg in `ls | grep -v _`; do egrep -sv '^\+|^\*?US[0-9]+Alt|^\*?US[0-9]+Bus|^\*?US[0-9]+Byp' $rg/*/*.wpt | cut -f1 -d' ' | egrep ':\*?US[0-9]+[AB]'; done | sed 's~^../[a-z0-9]\+/\(.*\).wpt:\(.*\)~\1:\2~' | sort)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions