Skip to content

update cycles = 0#194

Merged
sbenthall merged 4 commits intosbenthall:masterfrom
alanlujan91:infinite_lucas
Feb 16, 2023
Merged

update cycles = 0#194
sbenthall merged 4 commits intosbenthall:masterfrom
alanlujan91:infinite_lucas

Conversation

@alanlujan91
Copy link
Collaborator

Do not merge.

Closes #186 when tests pass.

To see error, try running python simulate/run_any_simulation.py output/20230127_ls

@alanlujan91 alanlujan91 requested a review from sbenthall February 1, 2023 20:48
Comment on lines +257 to +259
parameters = agent.parameters.copy()
parameters["Rfree"] = parameters["Rfree"][0]
ind_shock_double = cism.IndShockConsumerType(**parameters)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a HARK bug per se, but perhaps a design flaw...
Rfree is initially a float, but because of recent changes to HARK, it gets casted as a list, and a 1 element list in the case of infinite horizon. Then, when it is copied over, it is passed to this second agent as a list, which it does not like, so it has to be recast as a float again.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Although maybe this case should be handled by HARK anyway.

@sbenthall
Copy link
Owner

This is ready to merge now, right?
The Rfree issue has been fixed upstream?

@alanlujan91
Copy link
Collaborator Author

Yes, but still does not fix #193

@sbenthall
Copy link
Owner

Understood. I'll merge this now.

#193 is blocking "Lucas 0".
#101 seems to have wider scope.

Do you imagine a new PR addressing #193 ?

@sbenthall sbenthall merged commit 8828df6 into sbenthall:master Feb 16, 2023
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.

Lucas 0 should use infinite horizon agents

2 participants