Skip to content

Align stay-home baseline utility with min_activity_time_constant#265

Merged
FlxPo merged 1 commit intomainfrom
stay-home-utility-fix
Feb 24, 2026
Merged

Align stay-home baseline utility with min_activity_time_constant#265
FlxPo merged 1 commit intomainfrom
stay-home-utility-fix

Conversation

@FlxPo
Copy link
Contributor

@FlxPo FlxPo commented Feb 24, 2026

Motivation

See #264

Changes

  • Updated StateInitializer.get_stay_home_state to accept min_activity_time_constant.
  • Replaced the hardcoded stay-home utility term with the same min-activity-time variable used in iterative utility computation for exterior programmes.
  • Updated PopulationTrips to pass parameters.min_activity_time_constant when building the stay-home baseline state.

@FlxPo FlxPo added the bug Something isn't working label Feb 24, 2026
@codecov
Copy link

codecov bot commented Feb 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 70.42%. Comparing base (aacd80a) to head (80a5650).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #265   +/-   ##
=======================================
  Coverage   70.42%   70.42%           
=======================================
  Files          56       56           
  Lines        2424     2424           
=======================================
  Hits         1707     1707           
  Misses        717      717           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@FlxPo FlxPo merged commit b3fa59c into main Feb 24, 2026
4 checks passed
FlxPo added a commit that referenced this pull request Feb 27, 2026
…uted iteration (#261)

* fix congestion propagation when using multiple runs

* add checkpoints to population trips runs

* cleanup

* win 1252 to utf8 to avoid doc build issue

* Avoid leakage of flows data between subsequent runs (#260)

* fix congestion propagation when using multiple runs

* win 1252 to utf8 to avoid doc build issue

* Update README.md (#252)

* Align stay-home baseline utility with min_activity_time_constant (#265)

* Use saturation-weighted effective sink in destination sampling (#267)

* Leisures (#262)

* update the parsing of the leasure motive oppotunities

* update the parsing of the leasure motive oppotunities

* fix wrong leisure zones

* update the branch to the main

* fix PR issues on leisures

* Align prepare_transport_zones with main

* Fix types mismatch

* reenable float64 cast

---------

Co-authored-by: lucas_bohnenkamp0 <lucas.bohnenkamp@arep.fr>
Co-authored-by: FlxPo <flx.pouchain@gmail.com>

* replace clara clustering by kmeans + knn clustering (#271)

* add state-transition waterfall diagnostic (#269)

* add checkpoints to population trips runs

* cleanup

* [US] Établir un rapport de tous les paramètres d'entrée #198 (#240)

* Parameter reporting via pydantic

* avoid pydantic deprecation notice

* fix tests

* add parameters report to quickstart

* allow mixing kwargs and pydantic parameters + update PopulationTrips to use the new parameters handling method

* Population with pydantic model in inputs

* update motives to use the new parameters handling method

* update mobility surveys to use the new parameters handling method

* update modes to use the new parameters handling method

* move pydantic models alongside the class they are used in to remove the number of files

---------

Co-authored-by: FlxPo <flx.pouchain@gmail.com>

* add checkpoints to population trips runs

* cleanup

* fix congestion propagation when using multiple runs

* add checkpoints to population trips runs

---------

Co-authored-by: Cap <capucine-marin.dubroca-voisin@arep.fr>
Co-authored-by: lucas-boh <83457283+lucas-boh@users.noreply.github.com>
Co-authored-by: lucas_bohnenkamp0 <lucas.bohnenkamp@arep.fr>
Co-authored-by: mariegrandclement <marie.grand-clement@arep.fr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant