Skip to content

LABEL_SELFREF false negative #264

Closed

Description

@yakra

LABEL_SELFREF often flags a lot of false positives.
I found the first false negative today, NOR Fv669Edo @ Fv669Edo.

if selfref_found or r.route+r.banner == w.label or re.fullmatch(r.route+r.banner+'[_/].*',w.label):
datacheckerrors.append(DatacheckEntry(r,[w.label],'LABEL_SELFREF'))

Looks like it fails to take a route's abbrev into account, as sometimes happens with graph label simplification.

Activity

  1. changed the title [-]LABEL_SELFREF[/-] [+]LABEL_SELFREF false negative[/+] on Nov 15, 2020
  2. added
    LABEL_SELFREF
    on Nov 15, 2020
  3. yakra commented on Nov 15, 2021

    @yakra
    ContributorAuthor
    wha happen commit
    nor.fv669edo.wpt created e39c77dc19d30bda5f2371898cf69bc8a96abd7b
    Fv669Edo -> Fv669 697f13ae9cf70d54d790888b80f3cd5e57d7da61
    nor.fv669edo.wpt deleted c95d6f76a9e44ae618914fb2fe25ac1ba72264e7
  4. yakra commented on Nov 16, 2021

    @yakra
    ContributorAuthor
    1c1
    < Log file created at: Mon Nov 15 20:02:47 2021
    ---
    > Log file created at: Mon Nov 15 20:29:31 2021
    2257a2258,2259
    > deush.l194lan;L194Lan_E;;;LABEL_SELFREF;
    > deush.l194lan;L194Lan_W;;;LABEL_SELFREF;
    3324a3327
    > ita.ss027var;SS27Var;;;LABEL_SELFREF;
    4415a4419
    > nor.fv405ogg;Fv405Ogg;;;LABEL_SELFREF;
    4430a4435
    > nor.fv549sav;Fv549Sav;;;LABEL_SELFREF;
    5102a5108,5109
    > sc.sc150trkpac;SC150TrkPac_E;;;LABEL_SELFREF;
    > sc.sc150trkpac;SC150TrkPac_W;;;LABEL_SELFREF;
    5370a5378
    > tur.o005akh;O5Akh;;;LABEL_SELFREF;

    Does anything self-intersect? Yes, L194Lan.

  5. yakra commented on Nov 16, 2021

    @yakra
    ContributorAuthor

    ITA SS27Var is FP because:

    • itself = Route+Abbrev
    • intersecting = Route+Banner

    L194Lan: same route pointer in colocation list's other routes
    SS27Var: abbrev in colocation list's other banners
    Python has list comprehensions.
    C++ will need 2 new functions.

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