Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add functions for shifting age related parameters, computing pct changes in output #915

Merged
merged 6 commits into from
Mar 19, 2024

Conversation

jdebacker
Copy link
Member

This PR adds two new utilities to the utils.py modules:

  1. shift_bio_clock: this function can shift age-related parameters that also vary over time (e.g., mortality rates) by a certain number of years, with a transition over time
  2. pct_change_unstationarized: this function computes percentage changes in unstationarized output (useful if the baseline and reform runs feature different rates of economic growth or population growth).

@jdebacker jdebacker marked this pull request as ready for review March 19, 2024 02:07
@codecov-commenter
Copy link

codecov-commenter commented Mar 19, 2024

Codecov Report

Attention: Patch coverage is 78.94737% with 12 lines in your changes are missing coverage. Please review.

Project coverage is 73.17%. Comparing base (3d638e8) to head (637e0c8).
Report is 5 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #915      +/-   ##
==========================================
- Coverage   79.84%   73.17%   -6.68%     
==========================================
  Files          19       19              
  Lines        4506     4563      +57     
==========================================
- Hits         3598     3339     -259     
- Misses        908     1224     +316     
Flag Coverage Δ
unittests 73.17% <78.94%> (-6.68%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
ogcore/utils.py 88.47% <78.94%> (-1.45%) ⬇️

... and 5 files with indirect coverage changes

@jdebacker jdebacker merged commit 5a811f6 into PSLmodels:master Mar 19, 2024
10 of 11 checks passed
@jdebacker jdebacker deleted the utils branch March 19, 2024 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants