Closed jdebacker closed 7 months ago
Attention: 9 lines
in your changes are missing coverage. Please review.
Comparison is base (
d8a0fa4
) 80.28% compared to head (5fa18cb
) 80.26%.
@jdebacker. I deleted my ogcore-dev
conda environment and reinstalled it in my clone of your branch. When I ran run_ogcore_example.py
and got the following error:
(ogcore-dev) richardevans@Richards-MacBook-Pro-2 run_examples % python run_ogcore_example.py
Number of workers = 7
Traceback (most recent call last):
File "/Users/richardevans/Docs/Economics/OSE/OG-Core/run_examples/run_ogcore_example.py", line 138, in <module>
main()
File "/Users/richardevans/Docs/Economics/OSE/OG-Core/run_examples/run_ogcore_example.py", line 77, in main
p.e = np.tile(p.e.reshape(1, p.S, p.J), (p.T, 1, 1))
^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: cannot reshape array of size 224000 into shape (1,80,7)
@rickecon Noted about the example. That was for some testing and should be taken out. Will update.
All test we expect to pass on Python 3.11 pass locally. The three failures are the txfunc.py
functions whose results vary with the version on Python/SciPy used:
=========================== short test summary info ============================
FAILED tests/test_txfunc.py::test_txfunc_est[DEP] - assert False
FAILED tests/test_txfunc.py::test_tax_func_loop - assert False
FAILED tests/test_txfunc.py::test_tax_func_estimate - assert False
========= 3 failed, 496 passed, 16819 warnings in 32781.69s (9:06:21) ==========
I was also able to run the run_ogcore_example.py
script all the way through without issue.
I believe this PR is ready to merge.
LGTM. Thanks, @jdebacker.
This PR allows one to use an ability/labor productivity matrix that varies over time. Changing the shape of the
e
parameter object from SxJ to TxSxJ.