The congestion update does nothing currently, so travel costs stay free flow costs even if the user enables congestion for CarMode and sets n_iter_per_cost_update to more than zeo.
The bug was introduced here when working on the flows contamination issue between runs that we had at the moment.
The problem was that I used the old way of accessing the congestion parameter: getattr(m, "congestion", False) instead of m.inputs["parameters"].congestion.
I have a fix locally, and a test to avoid regressions on congestion calculations such as this one in the future.
The congestion update does nothing currently, so travel costs stay free flow costs even if the user enables congestion for CarMode and sets n_iter_per_cost_update to more than zeo.
The bug was introduced here when working on the flows contamination issue between runs that we had at the moment.
The problem was that I used the old way of accessing the congestion parameter:
getattr(m, "congestion", False)instead ofm.inputs["parameters"].congestion.I have a fix locally, and a test to avoid regressions on congestion calculations such as this one in the future.