Closed sbenthall closed 3 years ago
Yes, I think this definition of DiscretizedIIDProcess
in processes.py is obsolete and should be removed. It should be replaced by FiniteDistribution from distribution.py
.
Any update on this issue?
Have you tried using FiniteDistribution instead of DiscretizedIIDProcess ?
Ah, are you saying you would like this as a PR?
Oh, if you could do a PR, that would be great. You just need to remove DiscretizedIIDProcess. But if you are importing it from outside, just import FiniteDistribution instead of DiscretizedIIDProcess.
Here is the hierarchy for IID distributions.
Problem has actually been solved a while ago. Line 121 of processes.py, there is no call to DiscretizedIIDProcess anymore.
Here, the
DiscretizedIIDProcess
constructor is called with two arguments: https://github.com/EconForge/dolo.py/blob/3c73f4cd7838a4913dbdf7bbd559e80570b0a5e8/dolo/numeric/processes.py#L121However, that class takes no arguments in its constructor?
I get this error in a call to
find_steady_state(model)
in dolark which winds up with this message:TypeError: DiscretizedIIDProcess() takes no arguments
If necessary I can try to narrow down the conditions for the error.