Skip to content

Conversation

@daphnehanse11
Copy link
Collaborator

Summary

  • Add dated formula pattern so aca_ptc returns 0 before 2025
  • Prevents breaking 2024 microsim runs
  • Actual calculation logic moved to formula_2025

Closes #6137

Test plan

  • Added test verifying aca_ptc returns 0 for 2024
  • Updated existing tests to use 2025 period
  • All aca_ptc tests pass

🤖 Generated with Claude Code

Use dated formula pattern so aca_ptc returns 0 before 2025 to prevent
breaking 2024 microsim runs. The actual calculation logic is now in
formula_2025.

Closes PolicyEngine#6137

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@codecov
Copy link

codecov bot commented Dec 23, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (9739e2f) to head (f01bd8b).
⚠️ Report is 17 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##             main     #7032       +/-   ##
============================================
+ Coverage   76.92%   100.00%   +23.07%     
============================================
  Files           1         1               
  Lines          39        17       -22     
  Branches        4         0        -4     
============================================
- Hits           30        17       -13     
+ Misses          8         0        -8     
+ Partials        1         0        -1     
Flag Coverage Δ
unittests 100.00% <100.00%> (+23.07%) ⬆️

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

☔ 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.

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.

Add a safety catch in aca_ptc to return zero before 2025

1 participant