Skip to content

Change default stationarized to False in plot_aggregates - #1183

Open
arihantlodha-cmd wants to merge 1 commit into
PSLmodels:masterfrom
arihantlodha-cmd:change-plot-aggregates-stationarized-default
Open

Change default stationarized to False in plot_aggregates#1183
arihantlodha-cmd wants to merge 1 commit into
PSLmodels:masterfrom
arihantlodha-cmd:change-plot-aggregates-stationarized-default

Conversation

@arihantlodha-cmd

Copy link
Copy Markdown

Closes #1133.

Changes the default stationarized argument in output_plots.plot_aggregates from True to False, so unstationarized percentage changes are plotted by default. As noted in the issue, this produces identical output when the baseline and reform share the same underlying growth rates, and a more consistent view of aggregate changes when they don't.

Testing

  • pytest tests/test_output_plots.py → 50 passed
  • ruff format --check . and ruff check . → clean

One question for maintainers: plot_industry_aggregates in the same module also defaults to stationarized=True. I left it unchanged since the issue only mentions plot_aggregates — happy to flip it here too if you'd like the two kept consistent.

Closes PSLmodels#1133. Plots unstationarized percentage changes by default, giving
a more consistent view of aggregate changes when baseline and reform have
different underlying growth rates (and identical output when they match).
@jdebacker

Copy link
Copy Markdown
Member

@arihantlodha-cmd: good catch. Yes, please change plot_industry_aggregates.

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (master@b0986ac). Learn more about missing BASE report.
⚠️ Report is 7 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #1183   +/-   ##
=========================================
  Coverage          ?   72.66%           
=========================================
  Files             ?       22           
  Lines             ?     5725           
  Branches          ?        0           
=========================================
  Hits              ?     4160           
  Misses            ?     1565           
  Partials          ?        0           
Flag Coverage Δ
unittests 72.66% <ø> (?)

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

Files with missing lines Coverage Δ
ogcore/output_plots.py 87.60% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

Change the default stationarized in output_plots.plot_aggregates

3 participants