Skip to content

E55/E843/A14/A14Bar@+X01 #32

Closed
Closed

Description

@michihdeu

There's a data check error indicating that E55/E843/A14/A14Bar@+X01 has a hidden junction but there are already two unprocessed FPs...

Activity

  1. michihdeu commented on Oct 24, 2016

    @michihdeu
    ContributorAuthor

    Dunno why it happened and what has been changed but it's OK now...

  2. michihdeu commented on Nov 1, 2016

    @michihdeu
    ContributorAuthor

    The error is back with the latest update. I'm 100% sure that it was fine before!

    It seems that there are similar issues with FPs which are still indicated as error: http://tm.teresco.org/forum/index.php?topic=335.msg4177#msg4177.

  3. rickmastfan67 commented on Nov 13, 2016

    @rickmastfan67

    Alerting @terescoj @jteresco so he's fully aware of this.

  4. jteresco commented on Aug 1, 2017

    @jteresco
    Contributor

    This one doesn't seem to be causing a problem now. Can we close?

  5. michihdeu commented on Aug 1, 2017

    @michihdeu
    ContributorAuthor

    I think it is not causing a problem (or we have not yet detected it) but the issue still persists. Anything wents wrong in the code and should be checked one day. Low priority though.

  6. yakra commented on Oct 26, 2018

    @yakra
    Contributor

    http://forum.travelmapping.net/index.php?topic=2073
    Oops, never mind. Looking again at what's going on in the OP, these two issues are unrelated. Will post in that forum topic soon. And maybe give this issue a good think later on.

  7. yakra commented on Oct 27, 2018

    @yakra
    Contributor

    All of the HIDDEN_JUNCTION entries in datacheckfps.csv are showing up in unmatchedfps.log.

    fra.e15;E15/A9/E80/A709@+A709_W;;;HIDDEN_JUNCTION;4
    fra.e15;E15/A9/E80/A709@+A709_W;;;HIDDEN_JUNCTION;4
    fra.e15;E15/A9/A709/E80@+A709_W;;;HIDDEN_JUNCTION;4
    fra.e15;E15/A9/A709/E80@+A709_W;;;HIDDEN_JUNCTION;4
    fra.e15;E15/A9/A709/E80@+A709_W;;;HIDDEN_JUNCTION;4
    ita.e55;E55/E843/A14/A14Bar@+X01;;;HIDDEN_JUNCTION;4
    nor.rv658;Rv658@+X456802;;;HIDDEN_JUNCTION;4
    nor.rv658;Rv658@+X456802;;;HIDDEN_JUNCTION;4
    nor.rv658;Rv658@+X456802;;;HIDDEN_JUNCTION;4
    nor.rv658;Rv658@+X456802;;;HIDDEN_JUNCTION;4
    
  8. yakra commented on Oct 27, 2018

    @yakra
    Contributor


    seems to be returning FALSE. But why? <--Nope. Not returning: d is not actually in datacheckerrors -- see below.
    datacheckerrors.append(DatacheckEntry(vinfo.first_waypoint.route,[vinfo.unique_name],"HIDDEN_JUNCTION",str(len(vinfo.incident_collapsed_edges))))

    [vinfo.unique_name] means this datum is an array, consisting of one element, vinfo.unique_name, right? As far as I can tell, this should work...

  9. yakra commented on Oct 27, 2018

    @yakra
    Contributor

    datacheckerrors.append(DatacheckEntry(vinfo.first_waypoint.route,[vinfo.unique_name],"HIDDEN_JUNCTION",str(len(vinfo.incident_collapsed_edges))))

    happens as part of
    class HighwayGraph:
    """This class implements the capability to create graph
    data structures representing the highway data.
    On construction, build a list (as keys of a dict) of unique
    waypoint names that can be used as vertex labels in unique_waypoints,
    and a determine edges, at most one per concurrent segment, by
    setting segment names only on certain HighwaySegments in the overall
    data set. Create two sets of edges - one for the full graph
    and one for the graph with hidden waypoints compressed into
    multi-point edges.
    """
    def __init__(self, all_waypoints, highway_systems, datacheckerrors):

    The HighwayGraph is initialized on line 3047:
    # Build a graph structure out of all highway data in active and
    # preview systems
    if args.skipgraphs or args.errorcheck:
    print(et.et() + "SKIPPING generation of graphs.", flush=True)
    else:
    print(et.et() + "Setting up for graphs of highway data.", flush=True)
    graph_data = HighwayGraph(all_waypoints, highway_systems, datacheckerrors)

    Marking datacheck false positives occurs in lines 2472-2493 -- before the HighwayGraph is initialized, and thus before the HIDDEN_JUNCTION entries are appended to datacheckerrors.

  10. yakra commented on Oct 27, 2018

    @yakra
    Contributor

    #32 (comment)

    Dunno why it happened and what has been changed but it's OK now...

    My suspicion is that around that time Jim ran a site update with either the "-k" or "--skipgraphs" switch.

  11. yakra commented on Oct 27, 2018

    @yakra
    Contributor

    @jteresco, is it safe to move lines 2246-2517 to just before line 3223?

  12. jteresco commented on Oct 27, 2018

    @jteresco
    Contributor

    The root of the problem here is that we have a group of datacheck errors that are only going to be detected when graph generation happens. Maybe the answer is that the master graph needs to be generated every time to allow these datachecks to occur, but only generate all of the subgraphs (the time consuming part) when there's no -k flag. Then move the FP/unmarked FP stuff to after that graph is generated.

  13. michihdeu commented on Oct 27, 2018

    @michihdeu
    ContributorAuthor

    Yes, it would be great to generate the master graph with every update. I don't like that errors appear and disappear without knowing the reason.

  14. yakra commented on Oct 27, 2018

    @yakra
    Contributor

    The solution of generating just the master graph every time makes sense, I can look into this later on.

    However: HIDDEN_JUNCTION suffers from the same problem as VISIBLE_HIDDEN_COLOC, due to indeterminate point ordering in the QuadTree.
    When I run the modified siteupdate.py (move lines 2246-2517 to just before line 3223) on my machine (with most systems commented out to speed the process up), I get
    fra.a009;A9/A709/E15/E80@+A709_W;;;HIDDEN_JUNCTION;4
    Running the canonical siteupdate.py with all systems, I get
    fra.e15;E15/E80/A9/A709@+A709_W;;;HIDDEN_JUNCTION;4
    Meanwhile, on-site, we have
    fra.e15;E15/A9/A709/E80@+A709_W;;;HIDDEN_JUNCTION;4

    Just changing the data in the Waypoints fields (say, to the label on the route in question, +A709_W in this case) is not sufficient, as the datacheck error itself can change. Note the fra.a009 vs fra.e15.

  15. added a commit that references this issue on Nov 3, 2018
  16. yakra commented on Nov 3, 2018

    @yakra
    Contributor

    @si404, I've updated the HIDDEN_JUNCTION FP entries:
    yakra/HighwayData@ab5301f

  17. michihdeu commented on Nov 11, 2018

    @michihdeu
    ContributorAuthor

    It works! Thanks @yakra 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions