Skip to content

Congestion not computed anymore #288

@FlxPo

Description

@FlxPo

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions