Closed jdebacker closed 9 months ago
@jdebacker. This looks great. Thanks for doing this. Will merge as soon as tests pass.
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
7a6757b
) 70.82% compared to head (b726392
) 70.82%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Thanks @jdebacker. Merging.
Following up on PR #85, I noticed that despite this changes I was again seeing memory warnings:
And no, or slow, progress in when running
run_og_usa.py
when running with OG-Core 0.11.0 (which increases the size of several objects in theSpecifications
class object that contains the model parameters.After some profiling, I noticed that the "bytes stored" in the
dask
processes became quite large with the tax function estimation, but then remained quite high after that task completed:This PR helps deal with that issue by closing and deleting the client after tax function estimation and then instantiating a new client before the model solution algorithm is called.
This has seemed to avoid these issues.