econ-ark / HARK

Heterogenous Agents Resources & toolKit
Apache License 2.0
315 stars 195 forks source link

introducing DBlock, working it into the ATMC simulator, see #1371 #1411

Closed sbenthall closed 4 weeks ago

sbenthall commented 1 month ago

This PR works towards #1371 , namely to align HARK's modeling capabilities with the needs of the 'DYNARK' language, as anticipated based on last year's research sprint.

This PR introduces a new modeling component, a DBlock, which can include:

This is a trivial change on top of the earlier generic monte carlo functionality, just repackaging the data into a 'block' unit. But this PR updates the GMC simulator, and introduces new automated testing of the model and block objects.

This is a necessary step towards future work, which is reserved for other PRs, including:

The 'DBlock' construct is based on Matt's original spec from some time ago. It admittedly does not have all the bells and whistles of the notional nohablo style block. However, it captures all of the currently available simulator functionality. The purpose of this step is to begin the co-development of the block definition with the monte carlo simulator, which determines its semantics.

This PR is ready for review.

sbenthall commented 1 month ago

ruff is being stupid.

sbenthall commented 1 month ago

tests are passing now.

mnwhite commented 4 weeks ago

Per meeting discussion, this is mostly harmless. Don't panic.