Skip to content

Update get_params_and_initial_conditions - #144

Merged
aldoglielmo merged 4 commits into
bancaditalia:mainfrom
zauster:main
Jun 4, 2026
Merged

Update get_params_and_initial_conditions#144
aldoglielmo merged 4 commits into
bancaditalia:mainfrom
zauster:main

Conversation

@zauster

@zauster zauster commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

Copying the last updates from CalibrateBeforeIT.jl over. Also adds fixes for "old" (Austria and Italy) calibration data.

@aldoglielmo

Copy link
Copy Markdown
Collaborator

Thank you @zauster, this looks good to me, we can merge it

zauster added 2 commits June 3, 2026 16:21
Copying the last updates from CalibrateBeforeIT.jl over.
Also adds fixes for "old" calibration data.
- Extract `has_quarterly(d, key, idx)` helper, replacing four hand-rolled
  copies of the haskey/length/!ismissing guard — the same divergence that
  caused the earlier `timescale * nothing` MethodError.
- Compute the import/export goods balance once as `net_imports` instead of
  duplicating the ~8-line expression for `imports` and `reexports`.
- Replace the opaque `findall(...)[1][1]` index lookups with
  `findfirst(==(x), vec(...))` (vec keeps it an Int for N×1 layouts).
- Hoist MIN_PRODUCTIVITY to a documented module const; document `omega`.
- Add section banners (resolve indices / extract raw data / derive
  identities / sector params / estimate processes / pack output)
@aldoglielmo

Copy link
Copy Markdown
Collaborator

merging now after cleaning up the script

@aldoglielmo
aldoglielmo merged commit c04ee96 into bancaditalia:main Jun 4, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants