Skip to content

BUS_WITH_I datacheck #252

Closed
Closed

Description

@yakra

# look for I-xx with Bus instead of BL or BS
if re.fullmatch('I\-[0-9]*Bus', w.label):
datacheckerrors.append(DatacheckEntry(r,[w.label],'BUS_WITH_I'))

requires a full match, which means some labels (e.g. with directional suffixes, or abbrevs) could slip thru the cracks.
I'll cook up a few test cases and test them out.

C++ version is not affected.

Activity

  1. self-assigned this
    on Oct 7, 2019
  2. yakra commented on Nov 27, 2019

    @yakra
    ContributorAuthor

    Overlooks route "numbers" such as 35W, 35E, 69W, 69C, 69E

  3. yakra commented on Nov 27, 2019

    @yakra
    ContributorAuthor

    Case sensitive = potential for false negatives. How about all regexes in siteupdate.py?
    Their C++ equivalents?

  4. yakra commented on Nov 27, 2019

    @yakra
    ContributorAuthor

    Only flag these when country is USA.

    Potential for FPs:
    usai;TX;I-69;;Bus;Buster Keaton, TX;tx.i069bus; ;)
    Solution: check for intersecting route; abbrev

  5. yakra commented on Jun 12, 2020

    @yakra
    ContributorAuthor

    requires a full match, which means some labels (e.g. with directional suffixes, or abbrevs) could slip thru the cracks.

    Just slap a .* at the end and we're good to go.

    task Py C++
    require >= 1 numeral Done Done
    account for [NEWS] suffixes Done Done
    case insensitive Bus Done Done
    don't require full match Done Done
  6. yakra commented on Jun 12, 2020

    @yakra
    ContributorAuthor

    Only flag these when country is USA.

    • Easy enough in the C++ version.
    • The Python version has no region class, so... grumble, I guess turn all_regions into a dict, keys = region codes, values = the existing lists of fields. Where we now iterate through all_regions, we can iterate through all_regions.values(). A simple enough conversion.

    Potential for FPs:
    usai;TX;I-69;;Bus;Buster Keaton, TX;tx.i069bus; ;)
    Solution: check for intersecting route; abbrev

    Nope. Because the C++ version performs this datacheck while reading .wpt files from disk, there's potential for *colocated to not be populated yet. It's not worth making another pass thru the data to do this. On the rare theoretical occasion this would occur, it can just be marked FP.

  7. added a commit that references this issue on Jun 12, 2020
    96465fb
  8. yakra commented on Jun 15, 2020

    @yakra
    ContributorAuthor

    Does not account for starred labels.
    I'll fix wptedit first, and get this afterwards.

  9. reopened this on Jun 15, 2020
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