Skip to content

waypointsimplification.log DIFFs #64

Closed

Description

@yakra

TravelMapping#187 (comment)

  • The bad news: Just to make sure the waypointsimplification.log time increase was nothing to worry about, I DIFFed it against my latest Python version. The C++ version has 6862 extra lines: 6861 cases of Appended region:, plus Appended !: N4@Kou|SEN!. Looks like some duplicate vertices have crept in.
    • First thing would be to undo my latest changes and see if the problem persists, or if it was newly introduced. I'm pretty certain that this was introduced with earlier changes though (it arises during the initial setup; I've only dealt with vertex matching for subgraphs here), so I'll have to root out when & where.
    • I'm about 99% sure that the Python log was produced by my latest bleeding-edge (std::string buffer ctor #191) version, so there should be nothing to worry about. Due diligence would mean running it again, just to be sure. And would also mean comparing it against older versions' output to make sure no gremlins have crept in. Just against what's in the master branch now should be fine; my recent merged commits there have only dealt with subgraph generation, not initial setup.

Oddly, same number of lines in tm-master.tmg & tm-master-simple.tmg.
So is only waypointsimplification.log affected?

  • Errors such as Appended region: AH31@BlaHeiFry|RUS makes sense, as there's a concurrent route here.
> Appended region: N4@Kou|SEN
> Appended !: N4@Kou|SEN!

less so, as there's no concurrent route here.

Activity

  1. changed the title [-]Extra copies of vertices in master graph[/-] [+]waypointsimplification.log DIFFs[/+] on Feb 10, 2019
  2. yakra commented on Feb 10, 2019

    @yakra
    OwnerAuthor
    • It's not just that extra lines are in the C++ version...
      There are some necessary lines missing from the Python version
      E.G. Appended region: US2@AirRd|ME.
    • The master graph contains both
      US2@AirRd 44.707577 -69.810691
      and
      US2@AirRd 48.305834 -114.248124
    • The N4@Kou|SEN! situation makes me suspect another separate situation in the C++ version.
  3. yakra commented on Feb 10, 2019

    @yakra
    OwnerAuthor

    Same # of vertices & edges in both versions per siteupdate.log.

    Full graph has 548625 vertices, 620452 edges.
    Edge compressed graph has 398038 vertices, 469865 edges.
    

    So, it's just the waypoint simplification that's going screwy, however it's doing it. (...right?)

  4. yakra commented on Feb 10, 2019

    @yakra
    OwnerAuthor

    First thing would be to undo my latest changes and see if the problem persists, or if it was newly introduced. I'm pretty certain that this was introduced with earlier changes though (it arises during the initial setup; I've only dealt with vertex matching for subgraphs here), so I'll have to root out when & where.

    Confirmed, problem not introduced by this newest set of changes.

    I'm about 99% sure that the Python log was produced by my latest bleeding-edge (TravelMapping#191) version... Due diligence would mean running it again, just to be sure.

    Appears to be the case. No DIFF.

    And would also mean comparing it against older versions' output to make sure no gremlins have crept in. Just against what's in the master branch now should be fine; my recent merged commits there have only dealt with subgraph generation, not initial setup.

    Also identical: "uname2.py", A.K.A. the 2nd commit in #190.

  5. yakra commented on Feb 10, 2019

    @yakra
    OwnerAuthor

    The N4@Kou|SEN! situation makes me suspect another separate situation in the C++ version.

    Nope, no problem here; behaving as expected:
    gab.n004 has a Kou point.
    sen.n004 has two Kou points, a DUPLICATE_LABEL error.

  6. yakra commented on Feb 10, 2019

    @yakra
    OwnerAuthor

    Got it!

    C++ Good:

    // we're good; now construct a vertex
    if (!w->colocated)
    	vertices[w] = new HighwayGraphVertexInfo(w, &*(vertex_names.insert(point_name).first), datacheckerrors);
    else	vertices[w] = new HighwayGraphVertexInfo(w->colocated->front(), &*(vertex_names.insert(point_name).first), datacheckerrors);

    Python Bad:

    # we're good; now construct a vertex
    if w.colocated is None:
        self.vertices[w] = HighwayGraphVertexInfo(w, point_name, datacheckerrors)
    else:
        self.vertices[w] = HighwayGraphVertexInfo(w.colocated[0], point_name, datacheckerrors)

    point_name never got added to the vertex_names set.

  7. yakra commented on Feb 10, 2019

    @yakra
    OwnerAuthor
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