You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A quick look at this and I'm thinking it's because A might be a NMP of B and B an NMP of C but A is not an NMP of C? Though maybe they should all be clustered together in such a case.
B would be our w, and A & C members of other_w.
Thus B gets appended to A's list & C's list, with A & C assigned to B's list via all_waypoints.near_miss_waypoints(B, 0.0005).
When A & C are w (when that point is read in from its WPT file), they won't be detected as NMPs of one another, and life goes on.
It looks like there is a reason. I've not yet figured out what it is.
I was misled by some unrelated bugs in some other code I was working on, and thought there may be some more substance to this. I've now reconsidered my reconsideration. :)
I think this should work.
I may give it a try in the future, but if the changes described in #141 result in a speed increase, that would make this issue moot.
I ended up doing this in siteupdate.cpp, and it's been working well for a couple weeks now.
No DIFFs in nearmisspoints.log, tm-master.nmp, or nmp_merged/.
Implemented the same in siteupdate.py; also no DIFFs.
No discernable difference in processing time. Running some more tests to see what I can see, cuz I'm a nerd. :D
Reading WPTs is a fraction of a second slower, though this may just be within the margin of error.
Writing nmp_merged files: there's enough variation here that I can't see any clear effect.
Writing nearmisspoints.log and tm-master.nmp, however, is pretty clearly increasing from 0.7s to 0.9s.
Activity
yakra commentedon Dec 6, 2018
It looks like there is a reason. I've not yet figured out what it is.
jteresco commentedon Dec 9, 2018
A quick look at this and I'm thinking it's because A might be a NMP of B and B an NMP of C but A is not an NMP of C? Though maybe they should all be clustered together in such a case.
yakra commentedon Dec 9, 2018
B would be our
w, and A & C members ofother_w.Thus B gets appended to A's list & C's list, with A & C assigned to B's list via
all_waypoints.near_miss_waypoints(B, 0.0005).When A & C are
w(when that point is read in from its WPT file), they won't be detected as NMPs of one another, and life goes on.I was misled by some unrelated bugs in some other code I was working on, and thought there may be some more substance to this. I've now reconsidered my reconsideration. :)
I think this should work.
I may give it a try in the future, but if the changes described in #141 result in a speed increase, that would make this issue moot.
yakra commentedon Dec 13, 2018
#141 can't happen, due to the way nmp_merged files are made.
I'll look into this at some point.
yakra commentedon Jan 4, 2019
I ended up doing this in siteupdate.cpp, and it's been working well for a couple weeks now.
No DIFFs in
nearmisspoints.log,tm-master.nmp, ornmp_merged/.Implemented the same in siteupdate.py; also no DIFFs.
No discernable difference in processing time. Running some more tests to see what I can see, cuz I'm a nerd. :D
yakra commentedon Jan 9, 2019
Reading WPTs is a fraction of a second slower, though this may just be within the margin of error.
Writing nmp_merged files: there's enough variation here that I can't see any clear effect.
Writing nearmisspoints.log and tm-master.nmp, however, is pretty clearly increasing from 0.7s to 0.9s.
Not implementing this.
yakra commentedon May 20, 2020
I'm going to give this another look.
nmp detection cleanup for #148, alternative 2
Merge pull request #148 from TravelMapping/master