-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Misc Post Refactor Changes #287
Conversation
I remembered another small issue I wanted to fix in the refactor so have rolled it into this PR: if the user adds a space after the 'X' used to mark Source/Destination in the waypoints csv (or leaves it lower case) then PolarRoute can now handle that without erroring. This involved a change in |
…to only work on meshes
Extract routes python interface hotfix
Hopefully this is everything for this PR, could you take a look now @hjabbot and maybe re-run the pipeline configs to check none of this breaks anything there? There might be an issue with the use of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reg tests results you provided includes failing tests. Are they done after the most recent changes?
These are the same failing tests from #286, for fuel values in meshes with wind included. I was still planning to address these separately. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reran the pipeline configs with this code and the outputs match up with 0.6.x, only difference seems to be that the 'fuel' property in the routes has moved down to the bottom, but the values remain the same
Something I noticed running these though is that the refactor is significantly slower than main (2400s vs 1800s for a complicated set of waypoints). It'd be good to see this addressed before merging with main. Shall I raise an issue?
Ok yeah raise it as an issue and I'll look at running some sort of profiling to see where it's losing time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, would be good to see some additional tests done on the new speed of the route planner though!
After the last few changes related to #290 the example I was testing has sped up from 265s to 121s (see profiles below). @hjabbot's testing on the pipeline configs shows a smaller but still significant relative time saving (~33%) and in both cases the refactor is now at least as fast as main. I have also rerun the tests and the results are unchanged: route_test_dump_200824.txt There are probably still optimisations to be found, especially in |
PolarRoute Pull Request
Date: 13/08/24
Version Number: 0.6.2
Description of change
Full list of changes:
optimise_routes
andextract_routes
Fixes (part of?) #244
Testing
Test logs:
route_test_dump.txt
Files changed:
Checklist
0.6.x
branch (DO NOT SUBMIT A PR TO MAIN)