Closed alanlujan91 closed 1 year ago
@sbenthall to try to debug
I am able to replicate the Python 3.10 error locally:
ValueError: Warning: parameter CRRA is not a Distribution found in agent type <class 'HARK.ConsumptionSaving.ConsPortfolioModel.SequentialPortfolioConsumerType'>
It looks like this is happening with approx_distributions
, and throwing an error based on a case that you are deliberately catching.
Note also that the SharkPopulation's repr() method appears to be broken.
self = <[AttributeError("'SharkPopulation' object has no attribute 'population_parameters'") raised in repr()] SharkPopulation object at 0x7fb569bbed10>
I ran the tests 3 times and got the failure each time, so that's 3 for 3. Seems quite consistent to me.
We got this working ! Hooray!
@sbenthall the last error seems to be stochastically failing? locally I can get it to pass sometimes, but it also comes at the end of a simulation