Open
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #282 +/- ##
==========================================
+ Coverage 59.06% 59.26% +0.19%
==========================================
Files 129 131 +2
Lines 6738 6815 +77
==========================================
+ Hits 3980 4039 +59
- Misses 2758 2776 +18 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivations
This PR adds support for time-varying parameter values, see #281 for details.
Changes
ParameterProfileandSimulationSteputilities to represent and evaluate iteration-based parameter profiles.validation_types.py.value_of_time,value_of_time_stay_home, andradiation_lambdato accept either constant scalar values orParameterProfilevalues.Motive.get_parameters_at_step(step)to resolve step-varying motive parameters into scalar values for a given simulation step.Examples
The API to get a value of time for the work activity to change from 4 €/h to 8 €/h at time step 3 is :
It's also possible to get a gradual change with linear interpolation, here the value of time will be 4, 6 and 8 at steps 1, 2, 3 :
The old API still works for constant parameters :