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
I am trying to use traci.vehicleType.setScale() to manipulate the density of my flow. so I has this piece of code in my .py:
That returns "100.0" as the scale, in the meanwhile in my route file I have this :
but when I run simulations, the flow "hdv" is still having 12 vehicles instead of 1,200 as I expected.
I tried other traci.vehicleType command, seems they are all working except this one.
Any help would be appreciated!
The text was updated successfully, but these errors were encountered:
You have discovered a bug. Getters and setters were implemented in #10161 but the scale value is not checked for updates after the simulation has been initialised. So currently it is not possible but we will fix that.
Just a follow up question if you don’t mind. Are there other ways to change the flow capacity from the code like the setScale function? I am trying to run multiple simulations with different vehsPerHour of flows.
It may be a bit cumbersome but you can always replicate flows yourself by adding single vehicles (traci.vehicle.add). But you are probably better off waiting for the bug fix (expected for today).
Hi all,
I am trying to use traci.vehicleType.setScale() to manipulate the density of my flow. so I has this piece of code in my .py:
That returns "100.0" as the scale, in the meanwhile in my route file I have this :
but when I run simulations, the flow "hdv" is still having 12 vehicles instead of 1,200 as I expected.
I tried other traci.vehicleType command, seems they are all working except this one.
Any help would be appreciated!
The text was updated successfully, but these errors were encountered: