policyengine-core 3.37.2__tar.gz → 3.38.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/CHANGELOG.md +11 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/PKG-INFO +1 -1
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/docs/python_api/tools.md +7 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/docs/python_api/tracers.md +8 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/scripts/policyengine_command.py +36 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/simulations/simulation.py +68 -4
- policyengine_core-3.38.0/policyengine_core/tools/dependency_map.py +543 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/tracers/__init__.py +2 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/tracers/full_tracer.py +4 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/tracers/simple_tracer.py +3 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/tracers/trace_node.py +4 -0
- policyengine_core-3.38.0/policyengine_core/tracers/tracing_parameter_node_at_instant.py +396 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/pyproject.toml +1 -1
- policyengine_core-3.38.0/tests/core/test_tracer_parameter_reads.py +980 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_tracing_parameter_isolation.py +4 -1
- policyengine_core-3.38.0/tests/core/tools/test_dependency_map.py +798 -0
- policyengine_core-3.37.2/policyengine_core/tracers/tracing_parameter_node_at_instant.py +0 -173
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/.github/ISSUE_TEMPLATE.md +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/.github/actionlint.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/.github/bump_version.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/.github/changelog_template.md +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/.github/get-changelog-diff.sh +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/.github/has-functional-changes.sh +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/.github/is-version-number-acceptable.sh +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/.github/publish-git-tag.sh +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/.github/requirements/legacy-country-smoke.txt +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/.github/workflows/pr.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/.github/workflows/push.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/.gitignore +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/.python-version +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/AGENTS.md +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/CLAUDE.md +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/CONTRIBUTING.md +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/LICENSE +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/MANIFEST.in +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/Makefile +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/README.md +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/_build/logs/myst.build.json +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/changelog.d/.gitkeep +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/docs/_config.yml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/docs/_static/style.css +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/docs/_toc.yml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/docs/add_plotly_to_book.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/docs/contributing/intro.md +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/docs/engineering/skills/README.md +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/docs/engineering/skills/documentation_review.md +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/docs/engineering/skills/github-prs.md +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/docs/engineering/skills/testing.md +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/docs/intro.md +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/docs/logo.png +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/docs/python_api/commons.md +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/docs/python_api/country_template.md +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/docs/python_api/data.md +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/docs/python_api/data_storage.md +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/docs/python_api/entities.md +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/docs/python_api/enums.md +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/docs/python_api/errors.md +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/docs/python_api/experimental.md +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/docs/python_api/extension_template.md +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/docs/python_api/holders.md +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/docs/python_api/parameters.md +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/docs/python_api/periods.md +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/docs/python_api/populations.md +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/docs/python_api/projectors.md +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/docs/python_api/reforms.md +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/docs/python_api/scripts.md +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/docs/python_api/simulations.md +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/docs/python_api/taxbenefitsystems.md +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/docs/python_api/taxscales.md +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/docs/python_api/types.md +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/docs/python_api/variables.md +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/docs/python_api/warnings.md +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/docs/usage/branches.md +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/docs/usage/country.ipynb +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/docs/usage/datasets.ipynb +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/docs/usage/parameters.md +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/docs/usage/reforms.ipynb +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/docs/usage/simulation.ipynb +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/mypy.ini +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/__init__.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/build_metadata.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/charts/__init__.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/charts/bar.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/charts/formatting.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/commons/__init__.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/commons/formulas.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/commons/misc.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/commons/rates.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/country_template/__init__.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/country_template/constants.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/country_template/data/__init__.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/country_template/data/datasets/__init__.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/country_template/data/datasets/country_template_dataset.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/country_template/entities.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/country_template/modelled_policies.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/country_template/parameters/benefits/basic_income.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/country_template/parameters/benefits/housing_allowance.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/country_template/parameters/benefits/index.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/country_template/parameters/benefits/parenting_allowance/amount.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/country_template/parameters/benefits/parenting_allowance/income_threshold.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/country_template/parameters/general/age_of_majority.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/country_template/parameters/general/age_of_retirement.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/country_template/parameters/taxes/housing_tax.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/country_template/parameters/taxes/income_tax_rate.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/country_template/parameters/taxes/social_security_contribution.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/country_template/reforms/__init__.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/country_template/reforms/add_dynamic_variable.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/country_template/reforms/add_new_tax.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/country_template/reforms/flat_social_security_contribution.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/country_template/reforms/modify_social_security_taxation.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/country_template/reforms/removal_basic_income.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/country_template/situation_examples/__init__.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/country_template/situation_examples/couple.json +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/country_template/situation_examples/housing.json +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/country_template/situation_examples/single.json +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/country_template/tests/age.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/country_template/tests/basic_income.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/country_template/tests/disposable_income.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/country_template/tests/housing_allowance.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/country_template/tests/housing_tax.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/country_template/tests/income_tax.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/country_template/tests/reforms/add_dynamic_variable.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/country_template/tests/reforms/add_new_tax.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/country_template/tests/reforms/modify_social_security_taxation.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/country_template/tests/situations/income_tax.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/country_template/tests/situations/parenting_allowance.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/country_template/tests/social_security_contribution.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/country_template/tests/test_microsimulation.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/country_template/variables/__init__.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/country_template/variables/benefits.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/country_template/variables/demographics.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/country_template/variables/housing.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/country_template/variables/ids.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/country_template/variables/income.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/country_template/variables/stats.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/country_template/variables/taxes.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/data/__init__.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/data/dataset.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/data_storage/__init__.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/data_storage/in_memory_storage.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/data_storage/on_disk_storage.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/data_storage/storage_directory.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/data_storage/storage_keys.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/data_storage/store_history.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/data_structures/__init__.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/data_structures/parameter_metadata.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/data_structures/parameter_node_metadata.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/data_structures/reference.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/data_structures/unit.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/entities/__init__.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/entities/entity.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/entities/group_entity.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/entities/helpers.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/entities/role.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/enums/__init__.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/enums/config.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/enums/enum.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/enums/enum_array.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/errors/__init__.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/errors/cycle_error.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/errors/empty_argument_error.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/errors/nan_creation_error.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/errors/non_deterministic_formula_error.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/errors/parameter_not_found_error.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/errors/parameter_parsing_error.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/errors/period_mismatch_error.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/errors/situation_parsing_error.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/errors/spiral_error.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/errors/variable_name_conflict_error.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/errors/variable_not_found_error.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/experimental/__init__.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/experimental/memory_config.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/extension_template/__init__.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/extension_template/local_benefit.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/extension_template/parameters/local_town/child_allowance/amount.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/extension_template/parameters/local_town/child_allowance/index.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/extension_template/parameters/local_town/index.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/extension_template/tests/local_benefit.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/holders/__init__.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/holders/helpers.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/holders/holder.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/model_api.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/parameters/__init__.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/parameters/at_instant_like.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/parameters/config.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/parameters/helpers.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/parameters/operations/__init__.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/parameters/operations/get_parameter.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/parameters/operations/homogenize_parameters.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/parameters/operations/interpolate_parameters.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/parameters/operations/propagate_parameter_metadata.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/parameters/operations/uprate_parameters.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/parameters/parameter.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/parameters/parameter_at_instant.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/parameters/parameter_node.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/parameters/parameter_node_at_instant.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/parameters/parameter_scale.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/parameters/parameter_scale_bracket.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/parameters/vectorial_parameter_node_at_instant.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/periods/__init__.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/periods/config.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/periods/helpers.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/periods/instant_.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/periods/period_.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/populations/__init__.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/populations/config.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/populations/group_population.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/populations/population.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/projectors/__init__.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/projectors/entity_to_person_projector.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/projectors/first_person_to_entity_projector.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/projectors/helpers.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/projectors/projector.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/projectors/unique_role_to_entity_projector.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/reforms/__init__.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/reforms/reform.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/scripts/__init__.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/scripts/assets/__init__.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/scripts/assets/index.html +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/scripts/run_data.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/scripts/run_test.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/scripts/simulation_generator.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/simulations/__init__.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/simulations/helpers.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/simulations/individual_sim.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/simulations/microsimulation.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/simulations/simulation_builder.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/simulations/simulation_macro_cache.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/taxbenefitsystems/__init__.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/taxbenefitsystems/tax_benefit_system.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/taxscales/__init__.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/taxscales/abstract_rate_tax_scale.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/taxscales/abstract_tax_scale.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/taxscales/amount_tax_scale_like.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/taxscales/helpers.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/taxscales/linear_average_rate_tax_scale.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/taxscales/marginal_amount_tax_scale.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/taxscales/marginal_rate_tax_scale.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/taxscales/rate_tax_scale_like.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/taxscales/single_amount_tax_scale.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/taxscales/tax_scale_like.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/tools/__init__.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/tools/google_cloud.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/tools/hugging_face.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/tools/simulation_dumper.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/tools/test_from_situation.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/tools/test_runner.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/tools/win_file_manager.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/tracers/computation_log.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/tracers/flat_trace.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/tracers/performance_log.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/tracers/variable_graph.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/types/__init__.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/types/data_types/__init__.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/types/data_types/arrays.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/variables/__init__.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/variables/config.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/variables/defined_for.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/variables/formula_randomness.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/variables/helpers.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/variables/typing.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/variables/variable.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/warnings/__init__.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/warnings/libyaml_warning.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/warnings/memory_config_warning.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/warnings/parameter_key_warning.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/warnings/tempfile_warning.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/pytest.ini +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/__init__.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/conftest.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/__init__.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/commons/__init__.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/commons/test_between_function.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/commons/test_formulas.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/commons/test_is_in_function.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/commons/test_random_seed.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/commons/test_rates.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/data/test_dataset.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/enums/test_enum.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/model_api/test_index_.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/parameter_validation/__init__.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/parameter_validation/array_type.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/parameter_validation/duplicate_key.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/parameter_validation/filesystem_hierarchy/empty_index_file/index.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/parameter_validation/filesystem_hierarchy/node1/param.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/parameter_validation/indentation.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/parameter_validation/missing_value.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/parameter_validation/parameter_for_unit_propagation.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/parameter_validation/test_parameter_clone.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/parameter_validation/test_parameter_validation.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/parameter_validation/test_propagate_units.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/parameter_validation/test_unknown_keys.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/parameter_validation/unexpected_key_in_parameter.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/parameter_validation/unexpected_key_in_scale.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/parameter_validation/unexpected_key_in_value_at_instant.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/parameter_validation/unexpected_key_in_value_history.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/parameter_validation/unknown_key_beside_values.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/parameter_validation/uprating_under_metadata.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/parameter_validation/wrong_date.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/parameter_validation/wrong_scale.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/parameter_validation/wrong_type_in_bracket.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/parameter_validation/wrong_type_in_brackets.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/parameter_validation/wrong_type_in_parameter.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/parameter_validation/wrong_type_in_scale.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/parameter_validation/wrong_type_in_value_history.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/parameter_validation/wrong_value.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/parameter_validation/yaml_hierarchy/node1.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/parameters/operations/test_base_uprating.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/parameters/operations/test_base_uprating_property.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/parameters/operations/test_homogenization_parent_links.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/parameters/operations/test_interpolation.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/parameters/operations/test_nesting.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/parameters/operations/test_propagation.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/parameters/operations/test_scale_threshold_uprating.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/parameters/operations/test_uprating.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/parameters/test_numpy2_structured_arrays.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/parameters/test_parameter_metadata_clone.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/parameters/test_parameter_metadata_clone_property.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/parameters/test_parameter_node_add_child_caches.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/parameters/test_parameter_node_at_instant_copies.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/parameters/test_parameter_node_at_instant_lazy.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/parameters/test_parameter_node_at_instant_property.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/parameters/test_parameter_node_at_instant_systems.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/parameters/test_parameter_tree_parent_links.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/parameters/test_vectorial_parameter_node_copy.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/parameters/test_vectorial_parameter_node_copy_property.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/parameters_fancy_indexing/__init__.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/parameters_fancy_indexing/bareme.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/parameters_fancy_indexing/local_tax.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/parameters_fancy_indexing/rate.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/parameters_fancy_indexing/test_fancy_indexing.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/parameters_fancy_indexing/test_fancy_indexing_property.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/simulations/test_formula_randomness_concurrency.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/tax_scales/__init__.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/tax_scales/test_abstract_rate_tax_scale.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/tax_scales/test_abstract_tax_scale.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/tax_scales/test_linear_average_rate_tax_scale.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/tax_scales/test_linear_average_rate_tax_scale_property.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/tax_scales/test_marginal_amount_tax_scale.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/tax_scales/test_marginal_rate_tax_scale.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/tax_scales/test_rate_scale_conversion_property.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/tax_scales/test_rate_tax_scale_like.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/tax_scales/test_single_amount_tax_scale.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/tax_scales/test_tax_scales_commons.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_apply_reform_holders.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_apply_reform_holders_property.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_apply_reform_invalidates_cache.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_apply_reform_preserves_user_inputs.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_assert_near_precision.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_axes.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_bincount_minlength.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_branch_helper_invalidation.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_branch_input_fixed_point.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_branch_input_fixed_point_property.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_branch_input_invalidation.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_branch_input_invalidation_property.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_branch_scoped_delete_arrays.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_branch_shared_arrays.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_branch_shared_arrays_differential.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_build_metadata.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_calculate_output.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_carry_over_order.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_carry_over_order_property.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_clone_invalidated_caches.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_clone_rebinding.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_clone_rebinding_property.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_clone_reform_baseline.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_clone_reform_baseline_property.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_countries.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_cycles.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_data_storage_dir.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_data_storage_dir_property.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_dataset_default_role.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_dataset_default_role_property.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_dataset_getattr.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_dataset_unknown_column_warning.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_default_simulation_count_property.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_disk_period_filenames.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_disk_storage_delete_contained_periods.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_disk_storage_delete_property.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_disk_storage_differential.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_disk_storage_ownership.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_docs_deployment.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_dump_restore.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_dump_restore_property.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_entities.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_eternity_subperiods.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_extensions.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_fast_cache.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_fast_cache_contained_periods.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_fast_cache_contained_periods_property.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_fast_cache_guards.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_formulas.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_group_population_empty.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_group_population_reductions_property.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_holder_branch_fallback.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_holder_write_fast_cache.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_holder_write_fast_cache_property.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_holders.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_input_tier_invalidation.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_join_with_persons_identity.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_join_with_persons_identity_property.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_known_periods_branch_visibility.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_known_periods_branch_visibility_property.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_macro_cache_not_singleton.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_medium_fixes.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_microsimulation_calculate_signatures.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_microsimulation_internal_calls.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_microsimulation_option_reads.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_microsimulation_option_reads_property.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_microsimulation_person_accessor.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_microsimulation_weights.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_on_disk_storage_clones.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_opt_out_cache.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_option_result_cache.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_option_result_cache_property.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_option_result_input_provenance.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_own_period_input_overlapping_cache.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_pandas3_compatibility.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_parameter_security.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_parameters.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_periods.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_projectors.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_reform_baseline_system.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_reform_parameter_isolation.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_reform_period_keys.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_reforms.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_registered_input_deletion.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_release_tagging.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_rerun_fixture_isolation.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_restore_input_provenance.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_restore_input_registry.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_restore_input_registry_property.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_set_input_helper_order.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_set_input_helper_order_property.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_simulation_builder.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_simulation_copy_pickle.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_simulation_copy_pickle_property.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_simulations.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_stable_hash_seed.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_stale_frame_cache.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_storage_anchored_periods.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_storage_delete_branch.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_storage_input_index.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_storage_shared_index.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_storage_shared_index_differential.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_subsample_baseline_branch.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_subsample_computed_values.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_subsample_computed_values_property.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_subsample_deleted_inputs.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_subsample_entity_weight_totals.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_subsample_inputs_only.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_subsample_inputs_only_property.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_subsample_invalidates_cache.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_subsample_membership_ids.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_subsample_restore_inputs.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_subsample_sampling_period.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_subsample_sampling_period_property.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_subsample_structural_ids.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_subsample_weight_fallback.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_tax_benefit_system_cache_identity.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_tracers.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_tracing_parameter_isolation_properties.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_uprating_order.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_uprating_order_property.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_user_input_keys.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_user_input_keys_property.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_user_input_keys_soundness.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_variable_code_sharing.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_variable_code_sharing_property.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/test_yaml.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/tools/__init__.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/tools/test_assert_near.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/tools/test_google_cloud.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/tools/test_hugging_face.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/tools/test_runner/test_gc_pause.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/tools/test_runner/test_yaml_runner.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/variables/test_adds.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/variables/test_annualize.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/variables/test_bounds.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/variables/test_defined_for.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/variables/test_formula_randomness.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/variables/test_non_numeric_uprating_and_defined_for.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/variables/test_subtracts.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/variables/test_subtracts_sign.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/variables/test_variable_clone.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/variables/test_variable_formula_determinism.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/variables/test_variable_uprating.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/core/variables/test_variables.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/fixtures/__init__.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/fixtures/appclient.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/fixtures/branch_input_invalidation.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/fixtures/branch_shared_arrays.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/fixtures/carry_over.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/fixtures/chained_uprating_reference.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/fixtures/data_storage_dir.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/fixtures/disk_storage.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/fixtures/entities.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/fixtures/fast_cache_contained_periods.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/fixtures/microsimulation_internal_calls.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/fixtures/microsimulation_option_reads.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/fixtures/option_caches.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/fixtures/parameter_metadata_clones.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/fixtures/parameter_nodes_at_instant.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/fixtures/reform_holders.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/fixtures/set_input_helper_order.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/fixtures/simulation_copy.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/fixtures/simulations.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/fixtures/subsample_inputs.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/fixtures/taxbenefitsystems.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/fixtures/tracing.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/fixtures/uprated_inputs.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/fixtures/uprating_order.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/fixtures/variables.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/fixtures/vectorial_parameter_nodes.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/fixtures/yaml_tests/__init__.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/fixtures/yaml_tests/directory/subdirectory/test_4.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/fixtures/yaml_tests/directory/test_1.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/fixtures/yaml_tests/directory/test_2.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/fixtures/yaml_tests/failing_test_absolute_error_margin.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/fixtures/yaml_tests/failing_test_relative_error_margin.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/fixtures/yaml_tests/test_absolute_error_margin.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/fixtures/yaml_tests/test_failure.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/fixtures/yaml_tests/test_name_filter.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/fixtures/yaml_tests/test_relative_error_margin.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/fixtures/yaml_tests/test_success.yml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/fixtures/yaml_tests/test_with_anchors.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/fixtures/yaml_tests/test_with_extension.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/fixtures/yaml_tests/test_with_reform.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/fixtures/yaml_tests/test_with_reform_2.yaml +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/smoke/test_country_init.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/tests/smoke/test_us.py +0 -0
- {policyengine_core-3.37.2 → policyengine_core-3.38.0}/uv.lock +0 -0
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
## [3.38.0] - 2026-11-27
|
|
2
|
+
|
|
3
|
+
### Added
|
|
4
|
+
|
|
5
|
+
- `policyengine-core dependency-map -c <country package>` traces which variables read each parameter and which variables feed which, over the package's YAML tests and optionally its microdata, and writes the map with the package's version and a fingerprint of the model and traced tests.
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- `FullTracer` now records tax-scale reads with their schedule, reads of a parameter node's children and look-ups by name that find no child on a node at an instant, parameters read before an instant is chosen (`parameters.gov.rate(period)`), and the parameters core reads for `adds`, `subtracts` and uprating; each trace node also records whether its formula ran. Core's abolition check no longer appears in a trace when a country package traces its own parameter root.
|
|
10
|
+
|
|
11
|
+
|
|
1
12
|
## [3.37.2] - 2026-11-24
|
|
2
13
|
|
|
3
14
|
### Changed
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: policyengine-core
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.38.0
|
|
4
4
|
Summary: Core microsimulation engine enabling country-specific policy models.
|
|
5
5
|
Project-URL: Homepage, https://github.com/policyengine/policyengine-core
|
|
6
6
|
Author-email: PolicyEngine <hello@policyengine.org>
|
|
@@ -19,3 +19,10 @@ The `policyengine_core.tools` module contains miscellaneous utility functions, i
|
|
|
19
19
|
```{eval-rst}
|
|
20
20
|
.. autofunction:: policyengine_core.tools.simulation_dumper.restore_simulation
|
|
21
21
|
```
|
|
22
|
+
|
|
23
|
+
## dependency_map
|
|
24
|
+
|
|
25
|
+
```{eval-rst}
|
|
26
|
+
.. automodule:: policyengine_core.tools.dependency_map
|
|
27
|
+
:members: build_dependency_map, trace_yaml_tests, trace_microdata, model_fingerprint
|
|
28
|
+
```
|
|
@@ -73,3 +73,11 @@ The `policyengine_core.tracers` module contains classes used to represent tracer
|
|
|
73
73
|
:inherited-members:
|
|
74
74
|
:show-inheritance:
|
|
75
75
|
```
|
|
76
|
+
|
|
77
|
+
## TracingChildren
|
|
78
|
+
|
|
79
|
+
```{eval-rst}
|
|
80
|
+
.. autoclass:: policyengine_core.tracers.tracing_parameter_node_at_instant.TracingChildren
|
|
81
|
+
:members:
|
|
82
|
+
:show-inheritance:
|
|
83
|
+
```
|
|
@@ -105,12 +105,43 @@ def get_parser():
|
|
|
105
105
|
|
|
106
106
|
return parser
|
|
107
107
|
|
|
108
|
+
def build_dependency_map_parser(parser):
|
|
109
|
+
parser = add_tax_benefit_system_arguments(parser, country_only=True)
|
|
110
|
+
parser.add_argument(
|
|
111
|
+
"--population",
|
|
112
|
+
choices=["tests", "microdata", "both"],
|
|
113
|
+
default="tests",
|
|
114
|
+
help="what to trace: the package's YAML tests (default), a microdata subsample, or both",
|
|
115
|
+
)
|
|
116
|
+
parser.add_argument(
|
|
117
|
+
"--tests-root",
|
|
118
|
+
default=None,
|
|
119
|
+
help="directory of YAML tests to trace (default: <package>/tests)",
|
|
120
|
+
)
|
|
121
|
+
parser.add_argument(
|
|
122
|
+
"--every-test",
|
|
123
|
+
action="store_true",
|
|
124
|
+
help="trace every test, including tests whose output formulas have already run earlier in their file",
|
|
125
|
+
)
|
|
126
|
+
parser.add_argument(
|
|
127
|
+
"--households", type=int, default=2000, help="microdata subsample size"
|
|
128
|
+
)
|
|
129
|
+
parser.add_argument("--year", type=int, default=2026, help="microdata year")
|
|
130
|
+
parser.add_argument("--output", default="dependency-map.json")
|
|
131
|
+
return parser
|
|
132
|
+
|
|
108
133
|
parser_test = subparsers.add_parser("test", help="Run OpenFisca YAML tests")
|
|
109
134
|
parser_test = build_test_parser(parser_test)
|
|
110
135
|
|
|
111
136
|
parser_data = subparsers.add_parser("data", help="Manage OpenFisca data")
|
|
112
137
|
parser_data = build_data_parser(parser_data)
|
|
113
138
|
|
|
139
|
+
parser_dependency_map = subparsers.add_parser(
|
|
140
|
+
"dependency-map",
|
|
141
|
+
help="Trace which variables read each parameter and which variables feed which",
|
|
142
|
+
)
|
|
143
|
+
parser_dependency_map = build_dependency_map_parser(parser_dependency_map)
|
|
144
|
+
|
|
114
145
|
return parser
|
|
115
146
|
|
|
116
147
|
|
|
@@ -129,6 +160,11 @@ def main():
|
|
|
129
160
|
|
|
130
161
|
return sys.exit(main(parser))
|
|
131
162
|
|
|
163
|
+
if args.command == "dependency-map":
|
|
164
|
+
from policyengine_core.tools.dependency_map import main
|
|
165
|
+
|
|
166
|
+
return sys.exit(main(parser))
|
|
167
|
+
|
|
132
168
|
|
|
133
169
|
if __name__ == "__main__":
|
|
134
170
|
sys.exit(main())
|
{policyengine_core-3.37.2 → policyengine_core-3.38.0}/policyengine_core/simulations/simulation.py
RENAMED
|
@@ -27,13 +27,14 @@ from policyengine_core.entities.entity import Entity
|
|
|
27
27
|
from policyengine_core.enums import Enum, EnumArray
|
|
28
28
|
from policyengine_core.errors import CycleError, SpiralError
|
|
29
29
|
from policyengine_core.holders.holder import Holder
|
|
30
|
-
from policyengine_core.periods import Period
|
|
30
|
+
from policyengine_core.periods import Instant, Period
|
|
31
31
|
from policyengine_core.periods.config import ETERNITY, MONTH, YEAR
|
|
32
32
|
from policyengine_core.periods.helpers import period
|
|
33
33
|
from policyengine_core.tracers import (
|
|
34
34
|
FullTracer,
|
|
35
35
|
SimpleTracer,
|
|
36
36
|
TracingParameterNode,
|
|
37
|
+
TracingParameterNodeAtInstant,
|
|
37
38
|
)
|
|
38
39
|
import random
|
|
39
40
|
from policyengine_core.tools.hugging_face import *
|
|
@@ -686,6 +687,18 @@ class PreservedUserInput:
|
|
|
686
687
|
disk_enum: object = None
|
|
687
688
|
|
|
688
689
|
|
|
690
|
+
def _untraced(parameters_at_instant: object) -> object:
|
|
691
|
+
"""The parameter tree at an instant, without a tracing view around it.
|
|
692
|
+
|
|
693
|
+
A country package can trace its own parameter root, so reading it gives a
|
|
694
|
+
tracing view. Core's own checks read the tree through this, so that they
|
|
695
|
+
are not recorded as reads of the variable's formula.
|
|
696
|
+
"""
|
|
697
|
+
if isinstance(parameters_at_instant, TracingParameterNodeAtInstant):
|
|
698
|
+
return parameters_at_instant.parameter_node_at_instant
|
|
699
|
+
return parameters_at_instant
|
|
700
|
+
|
|
701
|
+
|
|
689
702
|
class Simulation:
|
|
690
703
|
"""
|
|
691
704
|
Represents a simulation, and handles the calculation logic
|
|
@@ -1720,7 +1733,7 @@ class Simulation:
|
|
|
1720
1733
|
try:
|
|
1721
1734
|
if (
|
|
1722
1735
|
variable.is_neutralized
|
|
1723
|
-
or self.tax_benefit_system.parameters(period).gov.abolitions[
|
|
1736
|
+
or _untraced(self.tax_benefit_system.parameters(period)).gov.abolitions[
|
|
1724
1737
|
variable.name
|
|
1725
1738
|
]
|
|
1726
1739
|
):
|
|
@@ -1940,6 +1953,17 @@ class Simulation:
|
|
|
1940
1953
|
value_in_this_period = _uprating_index_value(
|
|
1941
1954
|
uprating_parameter, period.start
|
|
1942
1955
|
)
|
|
1956
|
+
if self.trace:
|
|
1957
|
+
self._record_parameter_read(
|
|
1958
|
+
uprating_parameter.name,
|
|
1959
|
+
latest_known_period.start,
|
|
1960
|
+
value_in_last_period,
|
|
1961
|
+
)
|
|
1962
|
+
self._record_parameter_read(
|
|
1963
|
+
uprating_parameter.name,
|
|
1964
|
+
period.start,
|
|
1965
|
+
value_in_this_period,
|
|
1966
|
+
)
|
|
1943
1967
|
if (
|
|
1944
1968
|
value_in_last_period is None
|
|
1945
1969
|
or value_in_this_period is None
|
|
@@ -2380,6 +2404,22 @@ class Simulation:
|
|
|
2380
2404
|
|
|
2381
2405
|
return variable.calculate_output(self, variable_name, period)
|
|
2382
2406
|
|
|
2407
|
+
def _record_parameter_read(
|
|
2408
|
+
self, name: str, instant: Instant, value: object
|
|
2409
|
+
) -> None:
|
|
2410
|
+
"""Record a parameter core read for the variable being calculated.
|
|
2411
|
+
|
|
2412
|
+
``adds``, ``subtracts`` and uprating read the parameter tree directly,
|
|
2413
|
+
not through the view a formula receives. They call this only when the
|
|
2414
|
+
simulation is traced, so an untraced calculation neither calls it nor
|
|
2415
|
+
reads the parameter's name: a country package's tests can build a
|
|
2416
|
+
stand-in simulation that copies only some of core's methods.
|
|
2417
|
+
"""
|
|
2418
|
+
if self.trace:
|
|
2419
|
+
self.tracer.record_parameter_access(
|
|
2420
|
+
name, str(instant), self.branch_name, value
|
|
2421
|
+
)
|
|
2422
|
+
|
|
2383
2423
|
def _run_formula(
|
|
2384
2424
|
self, variable: str, population: Population, period: Period
|
|
2385
2425
|
) -> ArrayLike:
|
|
@@ -2388,6 +2428,8 @@ class Simulation:
|
|
|
2388
2428
|
"""
|
|
2389
2429
|
|
|
2390
2430
|
formula = variable.get_formula(period)
|
|
2431
|
+
if self.trace and (formula is not None or variable.adds or variable.subtracts):
|
|
2432
|
+
self.tracer.record_formula_run()
|
|
2391
2433
|
if formula is None:
|
|
2392
2434
|
values = None
|
|
2393
2435
|
if variable.adds is not None and len(variable.adds) > 0:
|
|
@@ -2402,6 +2444,10 @@ class Simulation:
|
|
|
2402
2444
|
f"In the variable '{variable.name}', the 'adds' attribute is a string '{variable.adds}' that does not match any parameter."
|
|
2403
2445
|
)
|
|
2404
2446
|
adds_list = adds_parameter(period.start)
|
|
2447
|
+
if self.trace:
|
|
2448
|
+
self._record_parameter_read(
|
|
2449
|
+
adds_parameter.name, period.start, adds_list
|
|
2450
|
+
)
|
|
2405
2451
|
else:
|
|
2406
2452
|
adds_list = variable.adds
|
|
2407
2453
|
values = 0
|
|
@@ -2416,7 +2462,12 @@ class Simulation:
|
|
|
2416
2462
|
self.tax_benefit_system.parameters,
|
|
2417
2463
|
added_variable,
|
|
2418
2464
|
)
|
|
2419
|
-
|
|
2465
|
+
added_value = parameter(period.start)
|
|
2466
|
+
if self.trace:
|
|
2467
|
+
self._record_parameter_read(
|
|
2468
|
+
parameter.name, period.start, added_value
|
|
2469
|
+
)
|
|
2470
|
+
values = values + added_value
|
|
2420
2471
|
except:
|
|
2421
2472
|
raise ValueError(
|
|
2422
2473
|
f"In the variable '{variable.name}', the 'adds' attribute is a list that contains a string '{added_variable}' that does not match any variable or parameter."
|
|
@@ -2433,6 +2484,12 @@ class Simulation:
|
|
|
2433
2484
|
f"In the variable '{variable.name}', the 'subtracts' attribute is a string '{variable.subtracts}' that does not match any parameter."
|
|
2434
2485
|
)
|
|
2435
2486
|
subtracts_list = subtracts_parameter(period.start)
|
|
2487
|
+
if self.trace:
|
|
2488
|
+
self._record_parameter_read(
|
|
2489
|
+
subtracts_parameter.name,
|
|
2490
|
+
period.start,
|
|
2491
|
+
subtracts_list,
|
|
2492
|
+
)
|
|
2436
2493
|
else:
|
|
2437
2494
|
subtracts_list = variable.subtracts
|
|
2438
2495
|
if values is None:
|
|
@@ -2450,7 +2507,14 @@ class Simulation:
|
|
|
2450
2507
|
self.tax_benefit_system.parameters,
|
|
2451
2508
|
subtracted_variable,
|
|
2452
2509
|
)
|
|
2453
|
-
|
|
2510
|
+
subtracted_value = parameter(period.start)
|
|
2511
|
+
if self.trace:
|
|
2512
|
+
self._record_parameter_read(
|
|
2513
|
+
parameter.name,
|
|
2514
|
+
period.start,
|
|
2515
|
+
subtracted_value,
|
|
2516
|
+
)
|
|
2517
|
+
values = values - subtracted_value
|
|
2454
2518
|
except:
|
|
2455
2519
|
raise ValueError(
|
|
2456
2520
|
f"In the variable '{variable.name}', the 'subtracts' attribute is a list that contains a string '{subtracted_variable}' that does not match any variable or parameter."
|