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

constructLognormalIncomeProcessUnemployment(parameters) is not a method? #538

Closed
sbenthall opened this issue Feb 21, 2020 · 3 comments
Closed
Milestone

Comments

@sbenthall
Copy link
Contributor

constructLognormalIncomeProcessUnemployment(parameters) is a fucntion defined in the ConsIndShockModel module.

It is called from within the AgentType with constructLognormalIncomeProcessUnemployment(self)--as if it's a method.

But it's not structured as a method. It's a standalone function.

This is one example of several other cases where something that is used much like a method is defined as a standalone function instead.

This is odd design.

@llorracc
Copy link
Collaborator

If it matters, it is quite specific to the particular case of the IndShockConsumerType and does not necessarily apply to superclasses that might inherit from it.

@mnwhite
Copy link
Contributor

mnwhite commented Feb 21, 2020 via email

@sbenthall
Copy link
Contributor Author

Cool. Thanks for confirming.

Seems like now is a good time to pay down the technical debt--kind of funny, for a library about consumption, borrowing, etc.

Honestly, I'm very happy doing this kind of work.
It's the best way for me to get clarity on how things work, in terms of the modeling substance, and I think it's going to serve the project well in the long run.

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

No branches or pull requests

3 participants