Skip to content

Commit

Permalink
Merge pull request #1493 from econ-ark/TurnOffCalcStablePointsWarning
Browse files Browse the repository at this point in the history
Turn off calc_stable_points warning when irrelevant
  • Loading branch information
akshayshanker authored Jan 6, 2025
2 parents f0ace18 + b6f21f1 commit 7cfd046
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions Documentation/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Release Date: TBD
- Changes the behavior of make_lognormal_RiskyDstn so that the standard deviation represents the standard deviation of log(returns)
- Adds detailed parameter and latex documentation to most models.
- Add PermGroFac constructor that explicitly combines idiosyncratic and aggregate sources of growth. [1489](https://github.com/econ-ark/HARK/pull/1489)
- Suppress warning from calc_stable_points when it would be raised by inapplicable AgentType subclasses. [1493](https://github.com/econ-ark/HARK/pull/1493)
- Fixes notation errors in IndShockConsumerType.make_euler_error_func from prior changes. [1495](https://github.com/econ-ark/HARK/pull/1495)
- Fixes typos in IdentityFunction interpolator class. [1492](https://github.com/econ-ark/HARK/pull/1492)

Expand Down
6 changes: 6 additions & 0 deletions HARK/ConsumptionSaving/ConsIndShockModel.py
Original file line number Diff line number Diff line change
Expand Up @@ -1854,6 +1854,12 @@ def calc_stable_points(self):
-------
None
"""
# Child classes should not run this method
is_perf_foresight = type(self) is PerfForesightConsumerType
is_ind_shock = type(self) is IndShockConsumerType
if not (is_perf_foresight or is_ind_shock):
return

infinite_horizon = self.cycles == 0
single_period = self.T_cycle = 1
if not infinite_horizon:
Expand Down

0 comments on commit 7cfd046

Please sign in to comment.