You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I initizlied a MarkovType based on the most recent release econ-ark 0.15.0 in a freshly created environment. The code is copied as below
File c:\ProgramData\mambaforge\envs\econ-ark3\Lib\site-packages\HARK\ConsumptionSaving\ConsMarkovModel.py:750, in MarkovConsumerType.init(self, **kwds)
747 params = init_indshk_markov.copy()
748 params.update(kwds)
--> 750 super().init(**params)
751 self.solve_one_period = solve_one_period_ConsMarkov
753 if not hasattr(self, "global_markov"):
File c:\ProgramData\mambaforge\envs\econ-ark3\Lib\site-packages\HARK\ConsumptionSaving\ConsIndShockModel.py:1914, in IndShockConsumerType.init(self, verbose, quiet, **kwds)
1912 # Add consumer-type specific objects, copying to create independent versions
1913 self.solve_one_period = solve_one_period_ConsIndShock
-> 1914 self.update()
File c:\ProgramData\mambaforge\envs\econ-ark3\Lib\site-packages\HARK\ConsumptionSaving\ConsMarkovModel.py:769, in MarkovConsumerType.update(self)
756 def update(self):
757 """
758 Update the Markov array, the income process, the assets grid, and
759 the terminal solution.
(...)
767 None
768 """
--> 769 self.construct("MrkvArray")
770 super().update()
File c:\ProgramData\mambaforge\envs\econ-ark3\Lib\site-packages\HARK\core.py:417, in Model.construct(self, force, *args)
415 continue
416 else:
--> 417 raise ValueError("No constructor found for " + key) from None
419 # Get the names of arguments for this constructor and try to gather them
420 args_needed = get_arg_names(constructor)
ValueError: No constructor found for MrkvArray
The text was updated successfully, but these errors were encountered:
Version 0.15.0 is not the latest version; 0.15.1 is. And as far as I know, this problem (and another related one) was fixed in #1484 , which has been merged into master, but not put into a release yet. There are a few small PRs that we want to get merged before putting out a new release.
Can you test this with the current version of HARK in the repo?
Describe the bug
I initizlied a MarkovType based on the most recent release econ-ark 0.15.0 in a freshly created environment. The code is copied as below
hark_mkv = MarkovConsumerType(**hark_mkv_para)
I got the following errors.
ValueError Traceback (most recent call last)
Cell In[11], line 1
----> 1 hark_mkv = MarkovConsumerType(**hark_mkv_para)
2 hark_mkv.cycles = 0
3 hark_mkv.vFuncBool = False
File c:\ProgramData\mambaforge\envs\econ-ark3\Lib\site-packages\HARK\ConsumptionSaving\ConsMarkovModel.py:750, in MarkovConsumerType.init(self, **kwds)
747 params = init_indshk_markov.copy()
748 params.update(kwds)
--> 750 super().init(**params)
751 self.solve_one_period = solve_one_period_ConsMarkov
753 if not hasattr(self, "global_markov"):
File c:\ProgramData\mambaforge\envs\econ-ark3\Lib\site-packages\HARK\ConsumptionSaving\ConsIndShockModel.py:1914, in IndShockConsumerType.init(self, verbose, quiet, **kwds)
1912 # Add consumer-type specific objects, copying to create independent versions
1913 self.solve_one_period = solve_one_period_ConsIndShock
-> 1914 self.update()
File c:\ProgramData\mambaforge\envs\econ-ark3\Lib\site-packages\HARK\ConsumptionSaving\ConsMarkovModel.py:769, in MarkovConsumerType.update(self)
756 def update(self):
757 """
758 Update the Markov array, the income process, the assets grid, and
759 the terminal solution.
(...)
767 None
768 """
--> 769 self.construct("MrkvArray")
770 super().update()
File c:\ProgramData\mambaforge\envs\econ-ark3\Lib\site-packages\HARK\core.py:417, in Model.construct(self, force, *args)
415 continue
416 else:
--> 417 raise ValueError("No constructor found for " + key) from None
419 # Get the names of arguments for this constructor and try to gather them
420 args_needed = get_arg_names(constructor)
ValueError: No constructor found for MrkvArray
The text was updated successfully, but these errors were encountered: