Skip to content

Commit 8769ad0

Browse files
committed
Reference issue #30
1 parent dcaf4a6 commit 8769ad0

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

tests/test_models/phelps_deaton.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ def utility_with_filter(
2929
consumption,
3030
working,
3131
delta,
32-
lagged_retirement, # noqa: ARG001
32+
# Temporary workaround for bug described in issue #30, which requires us to pass
33+
# all state variables to the utility function.
34+
lagged_retirement, # noqa: ARG001, TODO: Remove unused arguments once #30 is fixed.
3335
):
3436
return utility(consumption=consumption, working=working, delta=delta)
3537

tests/test_models/stochastic.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,16 @@
2020
# --------------------------------------------------------------------------------------
2121
# Utility function
2222
# --------------------------------------------------------------------------------------
23-
def utility(consumption, working, health, partner, delta, gamma): # noqa: ARG001
23+
def utility(
24+
consumption,
25+
working,
26+
health,
27+
# Temporary workaround for bug described in issue #30, which requires us to pass
28+
# all state variables to the utility function.
29+
partner, # noqa: ARG001, TODO: Remove unused arguments once #30 is fixed.
30+
delta,
31+
gamma,
32+
):
2433
return jnp.log(consumption) + (gamma * health - delta) * working
2534

2635

0 commit comments

Comments
 (0)