diff --git a/Documentation/CHANGELOG.md b/Documentation/CHANGELOG.md index a2a276938..488ac546c 100644 --- a/Documentation/CHANGELOG.md +++ b/Documentation/CHANGELOG.md @@ -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) diff --git a/HARK/ConsumptionSaving/ConsIndShockModel.py b/HARK/ConsumptionSaving/ConsIndShockModel.py index eab73377b..b45c6105a 100644 --- a/HARK/ConsumptionSaving/ConsIndShockModel.py +++ b/HARK/ConsumptionSaving/ConsIndShockModel.py @@ -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: