Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed hardcoded updateAFunc parameters into proper parameters #244

Merged
merged 2 commits into from
Apr 9, 2019

Conversation

llorracc
Copy link
Collaborator

@llorracc llorracc commented Apr 6, 2019

Four parameters that govern how CobbDouglasEconomy.updateAFunc works
were defined locally, within the method, but are now attributes to be
assigned at init (or at least before the user tries to solve):

  • update_weight --> DampingFac, now defined complementarily
  • verbose --> verbose
  • discard_periods --> T_discard
  • max_loops --> max_loops

To prevent this from being a breaking change, init method writes old
hardcoded values if omitted from passed inputs. This will be improved
with a warning later.

For release notes: "Parameters of ConsAggShockModel.CobbDouglasEconomy.updateAFunc and ConsAggShockModel.CobbDouglasMarkovEconomy.updateAFunc that govern damping and the number of discarded 'burn-in' periods were previously hardcoded, now proper instance-level parameters."

Four parameters that govern how CobbDouglasEconomy.updateAFunc works
were defined locally, within the method, but are now attributes to be
assigned at init (or at least before the user tries to solve):

- update_weight --> DampingFac, now defined complementarily
- verbose --> verbose
- discard_periods --> T_discard
- max_loops --> max_loops

To prevent this from being a breaking change, init method writes old
hardcoded values if omitted from passed inputs.  This will be improved
with a warning later.

Untested, as it turns out Anaconda3 is incorrectly installed on this
computer.
Put new parameters in dictionaries in ConsumerParameters.py.  Also added necessary lines to MarkovCobbDouglasEconomy and fixed one output description.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants