Skip to content

Fix timing inconsistencies and code bugs (re-base of #587)#753

Merged
jstac merged 1 commit into
mainfrom
extract-bugfix-587
May 28, 2026
Merged

Fix timing inconsistencies and code bugs (re-base of #587)#753
jstac merged 1 commit into
mainfrom
extract-bugfix-587

Conversation

@jstac
Copy link
Copy Markdown
Contributor

@jstac jstac commented May 28, 2026

This PR extracts the bug fixes from #587 (HumphreyYang) and applies them onto current main. The original PR could not be rebased cleanly due to extensive other changes on these files.

Summary

In cons_smooth.md and tax_smooth.md:

  • Fix budget constraint computation: missing factor of R in np.linalg.inv(A) @ b (should be @ (R * b)).
  • Fix plot_cs/plot_ts functions referencing global cs_model/tax_model instead of the model argument — the functions would silently ignore the model parameter if called with a different model.

In cagan_ree.md:

  • Fix off-by-one timing in μ_seq construction and continuation paths.
  • Add π_seq_2 boundary adjustment at T1-1 for regime continuity.
  • Fix swapped Smooth/Jumpy labels in the p-plot (now reads as $m_{T_1}$ to match the m-plot variants).
  • Add comment that γ* = 1 is assumed in solve().

Original PR: #587

Co-authored-by: HumphreyYang

🤖 Generated with Claude Code

In cons_smooth.md and tax_smooth.md:
- Fix budget constraint computation: missing factor of R in
  np.linalg.inv(A) @ b (should be @ (R * b)).
- Fix plot functions referencing global cs_model/tax_model instead
  of the model argument, which would silently ignore the model
  parameter if the function is called with a different model.

In cagan_ree.md:
- Fix off-by-one timing in μ_seq construction and continuation paths.
- Add π_seq_2 boundary adjustment at T1-1 for regime continuity.
- Fix swapped Smooth/Jumpy labels in the p-plot (now reads as $m_{T_1}$
  to match the m-plot variants).
- Add note that γ* = 1 is assumed in solve().

Extracted from #587 (HumphreyYang) onto current main.

Co-Authored-By: Humphrey Yang <u6474961@anu.edu.au>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@netlify
Copy link
Copy Markdown

netlify Bot commented May 28, 2026

Deploy Preview for taupe-gaufre-c4e660 ready!

Name Link
🔨 Latest commit 14835ea
🔍 Latest deploy log https://app.netlify.com/projects/taupe-gaufre-c4e660/deploys/6a17b0cca1eff00008894614
😎 Deploy Preview https://deploy-preview-753--taupe-gaufre-c4e660.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@jstac jstac mentioned this pull request May 28, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 28, 2026

@github-actions github-actions Bot temporarily deployed to pull request May 28, 2026 03:17 Inactive
@github-actions github-actions Bot temporarily deployed to pull request May 28, 2026 03:17 Inactive
@jstac jstac merged commit 29b5e23 into main May 28, 2026
7 checks passed
@jstac jstac deleted the extract-bugfix-587 branch May 28, 2026 06:57
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.

1 participant