-
Notifications
You must be signed in to change notification settings - Fork 57
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
Use vehicles.csv input in UrbanSim scenarios #3791
Conversation
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.
Reviewed all commit messages.
Reviewable status: 0 of 11 files reviewed, 3 unresolved discussions (waiting on @zneedell)
src/main/scala/beam/agentsim/agents/Population.scala
line 109 at r1 (raw file):
VehicleInfo( vehicleId = "", vehicleTypeId = vehId.toString,
Is this supposed to be vehicleTypeId or vehicleId?
src/main/scala/beam/sim/BeamHelper.scala
line 325 at r1 (raw file):
val (privateVehicleMap, privateVehicleSoc) = beamConfig.beam.exchange.scenario.source.toLowerCase match { // when reading an urbansim scenario, we read in the vehicles again in ScenarioAdjustment, so there's no need to // bother reading it in now. For now we still do read in freight vehicles, although it's probably cleaner to move
@dimaopen @nikolayilyin can you actually address this, if possible?
src/main/scala/beam/utils/scenario/UrbanSimScenarioLoader.scala
line 60 at r1 (raw file):
def loadScenario(): (Scenario, Boolean) = { // This is a hack for now. When initially building the scenario we skip reading personal vehicles but do read
@dimaopen @nikolayilyin and this
Previously, haitamlaarabi (Haitam Laarabi) wrote…
Ah good catch, thanks! |
# Conflicts: # src/main/scala/beam/utils/scenario/UrbanSimScenarioLoader.scala
Test now! |
Test now! |
test now! |
1 similar comment
test now! |
Test now! |
Test! |
test! |
Making this a draft for now because I'm noticing some agents getting caught by the stuckfinder. Will try to figure out why |
test! |
test! |
test! |
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.
lgtm
Test now! |
Previously the scenario's PrivateVehicles attribute was being overwritten during scenarioAdjustment when we're using an urbansim scenario (as is the case during pilates). Here's a trial fix, with a hack to hopefully not break anything when freight is turned on
This change is