Skip to content

Data check error "LABEL_SELFREF" not detected #318

Closed

Description

@michihdeu

I had some cases where LABEL_SELFREF where not detected in FRA-IDF and FRA-GES.
I guess it's in combination to the usage of banners for the French D routes.

  • Plain D906 was not detected.
  • Plain D112 was not detected.
  • Plain D120 was not detected.
  • D60 was not detected in D60/D108_W and D60/D108_E.
  • But D33 in D8/D33 was detected!?

Activity

  1. yakra commented on Apr 28, 2020

    @yakra
    Contributor
    • Plain D906 was not detected.
    • Plain D112 was not detected.
    • Plain D120 was not detected.

    if '/' in w.label and r.route[-1].isdigit():

    These labels don't contain a /, so we skip over that section of code.

    # now the remaining checks
    if selfref_found or r.route+r.banner == w.label or re.fullmatch(r.route+r.banner+'[_/].*',w.label):

    selfref_found is unchanged, still False. Thus the banner is required to match, and these non-banner "banners" of -54 & -78 are not found in the labels, so nothing else happens.


    • D60 was not detected in D60/D108_W and D60/D108_E.

    This label contains a /, so we do enter into the first big if block, but all the checks therein only scan the label starting after the /, so selfref_found remains False and we proceed as before.


    • But D33 in D8/D33 was detected!?

    Here, D33 is after the slash.

    if w.label[w.label.index('/')+1:] == r.route:
    selfref_found = True

    And badabing!


    Implementing a "fix" for this would require ignoring a route's banner field, which would mean breaking every case where a bannered route's point's label contains its unbannered parent.
    ...to which I emphatically say Nope! :)

    ...unless we added in some kind of FRA-specific workaround?

    select distinct banner from routes where region like 'FRA%';
    select distinct banner from routes where systemName like 'fra%';

    It looks like the only banners used in FRA are department numbers.
    This makes me bristle a bit though; it just seems like a kluge...

  2. added
    LABEL_SELFREF
    on Nov 15, 2020
  3. michihdeu commented on Feb 25, 2021

    @michihdeu
    ContributorAuthor
  4. yakra commented on Nov 15, 2021

    @yakra
    Contributor

    ...unless we added in some kind of FRA-specific workaround?
    ...
    This makes me bristle a bit though; it just seems like a kluge...

    A bit more palatable: Ignore Banners beginning with -.
    Right now, these are only used for French department numbers.
    Would just have to ensure that any future uses of -XX banners are a similar "non-banner" usage.


    Marked FP now:
    frahdf.d093962cam;D901/D939;;;LABEL_SELFREF;

    • Currently flagged because after-slash checks still ignore banners.
    • Phase 1 gets rid of it: same route + same "banner"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    LABEL_SELFREFdata qualitydatacheckpending

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions