Commit 7816bd6
fix: resolve build errors in ifp_egm and os_numerical
ifp_egm.md fixes:
- Add missing initialization in solve_model_numpy (c_vals, ae_vals = c_vals_init, ae_vals_init)
- Fix update function parameter order in simulate_household (t, state instead of state, t)
- Fix jax.random.fold_in argument order (key, t instead of t, key)
- Add .astype(jnp.int32) to z_next_idx to fix dtype mismatch
- Update jax.vmap to use in_axes instead of axes
- Add missing arguments to sim_all_households call
- Fix compute_asset_stationary argument order in all calls
os_numerical.md fixes:
- Simplify maximize function signature from (g, upper_bound, args) to (g, upper_bound)
- Remove unused args parameter and tuple unpacking
All changes tested by converting to Python with jupytext and running successfully.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent f9dd477 commit 7816bd6
2 files changed
+16
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
450 | 450 | | |
451 | 451 | | |
452 | 452 | | |
| 453 | + | |
453 | 454 | | |
454 | 455 | | |
455 | 456 | | |
| |||
798 | 799 | | |
799 | 800 | | |
800 | 801 | | |
801 | | - | |
| 802 | + | |
802 | 803 | | |
803 | 804 | | |
804 | | - | |
805 | | - | |
| 805 | + | |
| 806 | + | |
806 | 807 | | |
807 | 808 | | |
808 | 809 | | |
| |||
848 | 849 | | |
849 | 850 | | |
850 | 851 | | |
851 | | - | |
| 852 | + | |
852 | 853 | | |
853 | | - | |
| 854 | + | |
854 | 855 | | |
855 | 856 | | |
856 | 857 | | |
| |||
860 | 861 | | |
861 | 862 | | |
862 | 863 | | |
863 | | - | |
864 | | - | |
| 864 | + | |
| 865 | + | |
865 | 866 | | |
866 | | - | |
| 867 | + | |
867 | 868 | | |
868 | 869 | | |
869 | 870 | | |
| |||
911 | 912 | | |
912 | 913 | | |
913 | 914 | | |
914 | | - | |
915 | | - | |
916 | | - | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
917 | 918 | | |
918 | 919 | | |
919 | 920 | | |
| |||
980 | 981 | | |
981 | 982 | | |
982 | 983 | | |
983 | | - | |
| 984 | + | |
984 | 985 | | |
985 | 986 | | |
986 | 987 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
| 162 | + | |
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
168 | | - | |
| 167 | + | |
169 | 168 | | |
170 | 169 | | |
171 | 170 | | |
172 | | - | |
| 171 | + | |
173 | 172 | | |
174 | 173 | | |
175 | 174 | | |
| |||
0 commit comments