-
Notifications
You must be signed in to change notification settings - Fork 0
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
lad regions #548
base: main
Are you sure you want to change the base?
lad regions #548
Conversation
Robinlovelace
commented
Oct 31, 2024
- Update gitignore
- comment-out everything after school routing, for tests
- Testing pattern in targets
- Working dynamic branching (it seems)!
- Dynamic branching for commuting too
- Add garbage_collection
- Try lads as regions
Hi @wangzhao0217 I think this is the way forward. Advantages of using LADs as regions for build:
There may also be some disadvantages. We will have to make changes to |
Any update on this @wangzhao0217 ? I should be able to have a bash later this evening or in the next few days. |
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.
Great progress...
R/corenet_build_OS.R
Outdated
@@ -1,11 +1,12 @@ | |||
corenet_build_OS = function(os_scotland, osm_scotland, la_names) { | |||
|
|||
message("Generate the city's coherent network for each region with growing") | |||
message("Generate the coherent network for each LA") |
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.
👍
R/corenet_build_OS.R
Outdated
|
||
for (la_name in la_names) { | ||
for (la_name in la_names[2:32]) { |
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.
👍 testing at scale!
route_ids.csv
Outdated
@@ -1,4 +1,10 @@ | |||
nrow,plan,purpose,region,date,id | |||
4140,ebike,commute,dumfries_and_galloway,2024-11-31,11332 | |||
987,ebike,school,dumfries_and_galloway,NA,11328 |
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.
Why the NAs?
Failing for Clackmannshire @wangzhao0217 |
_targets.R
Outdated
tar_target(r_commute, | ||
rs_commute[[1]]$routes, | ||
pattern = map(rs_commute), | ||
iteration = "list" | ||
), | ||
tar_target(r_commute_fastest, { | ||
rs_commute[[1]][[1]]$routes | ||
}), | ||
tar_target(r_commute_quietest, { | ||
rs_commute[[3]][[1]]$routes | ||
}), | ||
tar_target(r_commute_ebike, { | ||
rs_commute[[4]][[1]]$routes | ||
}), | ||
tar_target(r_commute_balanced, { | ||
rs_commute[[2]][[1]]$routes | ||
}), |
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.
This undoes the conciseness benefits of using dynamic branching, right?
59a7eec
to
b00c6e6
Compare
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.
Few more changes to minimize difference compared with main.