-
-
Notifications
You must be signed in to change notification settings - Fork 199
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
Consumption Saving Refactor - move examples to notebooks - tests boilerplate #455
Conversation
… but it is now updated to use ConsRepAgentModel
[Build fails because it is running for py2.7 too] |
Move def main to example_model.py
|
Would you like me to review this some time? |
@sbenthall that would be great! Almost done with this one. |
@sbenthall Can you go through this once, I don't want to make more changes to this as it will create a big PR. I'll start a new PR with further changes. |
@MridulS Sorry for the slow action on this one. |
Ah the consumption parameters change is failing the tests, I'll update this PR. |
okay this is weirder than I thought, something is breaking between import structure of python3.6 and python3.7 This works for py3.7 and py3.8 |
Because the 3.6 build was broken on an issue involving import of the I removed this line: which seemed to be opening up a new way to import ConsumptionSaving files. instead of I see now that you used the former style ( A change I would test myself if I could use the different build environments in GitHub actions myself is whether if all these references are changed back to |
reverted changes to make this py2.7 compatible and make it v0.10.4 friendly |
I have removed the def main() code from ConsIndShockModel.py file and moved it to a example file.
This file will be present in the examples/ directory and parts of that file will be in the tests/ directory to create base level testing coverage of the module.
We also need to discuss what is exposed to the final user, for example
ValueFunc
,MargValueFunc
andMargMargValueFunc
are use by other classes to solve the model but I don't see users using this directly. Should this be exposed in the final documentation on readthedocs?In this PR I'll repeat the same with all the other models and files in the ConsumptionSaving folder.
In this refactor I am also removing py2 specific dependencies in the ConsumptionSaving module as the py2 drop date is 15th Jan according to the roadmap.