Skip to content

Commit

Permalink
Reference issue #30
Browse files Browse the repository at this point in the history
  • Loading branch information
timmens committed Feb 28, 2024
1 parent dcaf4a6 commit 8769ad0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
4 changes: 3 additions & 1 deletion tests/test_models/phelps_deaton.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ def utility_with_filter(
consumption,
working,
delta,
lagged_retirement, # noqa: ARG001
# Temporary workaround for bug described in issue #30, which requires us to pass
# all state variables to the utility function.
lagged_retirement, # noqa: ARG001, TODO: Remove unused arguments once #30 is fixed.
):
return utility(consumption=consumption, working=working, delta=delta)

Expand Down
11 changes: 10 additions & 1 deletion tests/test_models/stochastic.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,16 @@
# --------------------------------------------------------------------------------------
# Utility function
# --------------------------------------------------------------------------------------
def utility(consumption, working, health, partner, delta, gamma): # noqa: ARG001
def utility(
consumption,
working,
health,
# Temporary workaround for bug described in issue #30, which requires us to pass
# all state variables to the utility function.
partner, # noqa: ARG001, TODO: Remove unused arguments once #30 is fixed.
delta,
gamma,
):
return jnp.log(consumption) + (gamma * health - delta) * working


Expand Down

0 comments on commit 8769ad0

Please sign in to comment.