Skip to content

Congestion not computed anymore #288

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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