policyengine-core 3.35.0__tar.gz → 3.36.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.35.0 → policyengine_core-3.36.0}/CHANGELOG.md +7 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/PKG-INFO +1 -1
- policyengine_core-3.36.0/docs/usage/parameters.md +186 -0
- policyengine_core-3.36.0/policyengine_core/data_structures/parameter_metadata.py +104 -0
- policyengine_core-3.36.0/policyengine_core/parameters/operations/uprate_parameters.py +1131 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/pyproject.toml +1 -1
- policyengine_core-3.36.0/tests/core/parameters/operations/test_base_uprating.py +1008 -0
- policyengine_core-3.36.0/tests/core/parameters/operations/test_base_uprating_property.py +873 -0
- policyengine_core-3.35.0/policyengine_core/parameters/operations/uprate_parameters.py → policyengine_core-3.36.0/tests/fixtures/chained_uprating_reference.py +21 -0
- policyengine_core-3.35.0/docs/usage/parameters.md +0 -110
- policyengine_core-3.35.0/policyengine_core/data_structures/parameter_metadata.py +0 -76
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/.github/ISSUE_TEMPLATE.md +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/.github/actionlint.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/.github/bump_version.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/.github/changelog_template.md +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/.github/get-changelog-diff.sh +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/.github/has-functional-changes.sh +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/.github/is-version-number-acceptable.sh +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/.github/publish-git-tag.sh +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/.github/requirements/legacy-country-smoke.txt +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/.github/workflows/pr.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/.github/workflows/push.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/.gitignore +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/.python-version +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/AGENTS.md +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/CLAUDE.md +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/CONTRIBUTING.md +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/LICENSE +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/MANIFEST.in +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/Makefile +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/README.md +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/_build/logs/myst.build.json +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/changelog.d/.gitkeep +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/docs/_config.yml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/docs/_static/style.css +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/docs/_toc.yml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/docs/add_plotly_to_book.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/docs/contributing/intro.md +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/docs/engineering/skills/README.md +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/docs/engineering/skills/documentation_review.md +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/docs/engineering/skills/github-prs.md +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/docs/engineering/skills/testing.md +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/docs/intro.md +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/docs/logo.png +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/docs/python_api/commons.md +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/docs/python_api/country_template.md +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/docs/python_api/data.md +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/docs/python_api/data_storage.md +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/docs/python_api/entities.md +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/docs/python_api/enums.md +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/docs/python_api/errors.md +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/docs/python_api/experimental.md +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/docs/python_api/extension_template.md +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/docs/python_api/holders.md +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/docs/python_api/parameters.md +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/docs/python_api/periods.md +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/docs/python_api/populations.md +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/docs/python_api/projectors.md +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/docs/python_api/reforms.md +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/docs/python_api/scripts.md +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/docs/python_api/simulations.md +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/docs/python_api/taxbenefitsystems.md +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/docs/python_api/taxscales.md +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/docs/python_api/tools.md +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/docs/python_api/tracers.md +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/docs/python_api/types.md +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/docs/python_api/variables.md +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/docs/python_api/warnings.md +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/docs/usage/branches.md +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/docs/usage/country.ipynb +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/docs/usage/datasets.ipynb +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/docs/usage/reforms.ipynb +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/docs/usage/simulation.ipynb +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/mypy.ini +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/__init__.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/build_metadata.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/charts/__init__.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/charts/bar.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/charts/formatting.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/commons/__init__.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/commons/formulas.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/commons/misc.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/commons/rates.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/country_template/__init__.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/country_template/constants.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/country_template/data/__init__.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/country_template/data/datasets/__init__.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/country_template/data/datasets/country_template_dataset.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/country_template/entities.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/country_template/modelled_policies.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/country_template/parameters/benefits/basic_income.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/country_template/parameters/benefits/housing_allowance.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/country_template/parameters/benefits/index.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/country_template/parameters/benefits/parenting_allowance/amount.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/country_template/parameters/benefits/parenting_allowance/income_threshold.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/country_template/parameters/general/age_of_majority.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/country_template/parameters/general/age_of_retirement.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/country_template/parameters/taxes/housing_tax.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/country_template/parameters/taxes/income_tax_rate.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/country_template/parameters/taxes/social_security_contribution.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/country_template/reforms/__init__.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/country_template/reforms/add_dynamic_variable.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/country_template/reforms/add_new_tax.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/country_template/reforms/flat_social_security_contribution.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/country_template/reforms/modify_social_security_taxation.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/country_template/reforms/removal_basic_income.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/country_template/situation_examples/__init__.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/country_template/situation_examples/couple.json +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/country_template/situation_examples/housing.json +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/country_template/situation_examples/single.json +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/country_template/tests/age.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/country_template/tests/basic_income.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/country_template/tests/disposable_income.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/country_template/tests/housing_allowance.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/country_template/tests/housing_tax.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/country_template/tests/income_tax.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/country_template/tests/reforms/add_dynamic_variable.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/country_template/tests/reforms/add_new_tax.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/country_template/tests/reforms/modify_social_security_taxation.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/country_template/tests/situations/income_tax.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/country_template/tests/situations/parenting_allowance.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/country_template/tests/social_security_contribution.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/country_template/tests/test_microsimulation.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/country_template/variables/__init__.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/country_template/variables/benefits.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/country_template/variables/demographics.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/country_template/variables/housing.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/country_template/variables/ids.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/country_template/variables/income.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/country_template/variables/stats.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/country_template/variables/taxes.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/data/__init__.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/data/dataset.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/data_storage/__init__.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/data_storage/in_memory_storage.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/data_storage/on_disk_storage.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/data_storage/storage_directory.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/data_storage/storage_keys.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/data_storage/store_history.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/data_structures/__init__.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/data_structures/parameter_node_metadata.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/data_structures/reference.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/data_structures/unit.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/entities/__init__.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/entities/entity.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/entities/group_entity.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/entities/helpers.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/entities/role.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/enums/__init__.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/enums/config.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/enums/enum.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/enums/enum_array.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/errors/__init__.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/errors/cycle_error.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/errors/empty_argument_error.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/errors/nan_creation_error.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/errors/non_deterministic_formula_error.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/errors/parameter_not_found_error.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/errors/parameter_parsing_error.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/errors/period_mismatch_error.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/errors/situation_parsing_error.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/errors/spiral_error.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/errors/variable_name_conflict_error.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/errors/variable_not_found_error.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/experimental/__init__.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/experimental/memory_config.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/extension_template/__init__.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/extension_template/local_benefit.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/extension_template/parameters/local_town/child_allowance/amount.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/extension_template/parameters/local_town/child_allowance/index.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/extension_template/parameters/local_town/index.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/extension_template/tests/local_benefit.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/holders/__init__.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/holders/helpers.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/holders/holder.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/model_api.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/parameters/__init__.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/parameters/at_instant_like.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/parameters/config.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/parameters/helpers.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/parameters/operations/__init__.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/parameters/operations/get_parameter.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/parameters/operations/homogenize_parameters.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/parameters/operations/interpolate_parameters.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/parameters/operations/propagate_parameter_metadata.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/parameters/parameter.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/parameters/parameter_at_instant.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/parameters/parameter_node.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/parameters/parameter_node_at_instant.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/parameters/parameter_scale.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/parameters/parameter_scale_bracket.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/parameters/vectorial_parameter_node_at_instant.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/periods/__init__.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/periods/config.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/periods/helpers.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/periods/instant_.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/periods/period_.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/populations/__init__.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/populations/config.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/populations/group_population.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/populations/population.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/projectors/__init__.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/projectors/entity_to_person_projector.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/projectors/first_person_to_entity_projector.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/projectors/helpers.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/projectors/projector.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/projectors/unique_role_to_entity_projector.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/reforms/__init__.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/reforms/reform.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/scripts/__init__.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/scripts/assets/__init__.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/scripts/assets/index.html +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/scripts/policyengine_command.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/scripts/run_data.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/scripts/run_test.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/scripts/simulation_generator.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/simulations/__init__.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/simulations/helpers.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/simulations/individual_sim.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/simulations/microsimulation.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/simulations/simulation.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/simulations/simulation_builder.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/simulations/simulation_macro_cache.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/taxbenefitsystems/__init__.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/taxbenefitsystems/tax_benefit_system.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/taxscales/__init__.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/taxscales/abstract_rate_tax_scale.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/taxscales/abstract_tax_scale.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/taxscales/amount_tax_scale_like.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/taxscales/helpers.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/taxscales/linear_average_rate_tax_scale.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/taxscales/marginal_amount_tax_scale.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/taxscales/marginal_rate_tax_scale.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/taxscales/rate_tax_scale_like.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/taxscales/single_amount_tax_scale.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/taxscales/tax_scale_like.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/tools/__init__.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/tools/google_cloud.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/tools/hugging_face.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/tools/simulation_dumper.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/tools/test_from_situation.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/tools/test_runner.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/tools/win_file_manager.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/tracers/__init__.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/tracers/computation_log.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/tracers/flat_trace.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/tracers/full_tracer.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/tracers/performance_log.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/tracers/simple_tracer.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/tracers/trace_node.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/tracers/tracing_parameter_node_at_instant.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/tracers/variable_graph.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/types/__init__.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/types/data_types/__init__.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/types/data_types/arrays.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/variables/__init__.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/variables/config.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/variables/defined_for.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/variables/formula_randomness.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/variables/helpers.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/variables/typing.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/variables/variable.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/warnings/__init__.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/warnings/libyaml_warning.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/warnings/memory_config_warning.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/warnings/parameter_key_warning.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/policyengine_core/warnings/tempfile_warning.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/pytest.ini +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/__init__.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/conftest.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/__init__.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/commons/__init__.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/commons/test_between_function.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/commons/test_formulas.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/commons/test_is_in_function.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/commons/test_random_seed.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/commons/test_rates.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/data/test_dataset.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/enums/test_enum.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/model_api/test_index_.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/parameter_validation/__init__.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/parameter_validation/array_type.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/parameter_validation/duplicate_key.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/parameter_validation/filesystem_hierarchy/empty_index_file/index.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/parameter_validation/filesystem_hierarchy/node1/param.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/parameter_validation/indentation.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/parameter_validation/missing_value.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/parameter_validation/parameter_for_unit_propagation.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/parameter_validation/test_parameter_clone.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/parameter_validation/test_parameter_validation.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/parameter_validation/test_propagate_units.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/parameter_validation/test_unknown_keys.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/parameter_validation/unexpected_key_in_parameter.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/parameter_validation/unexpected_key_in_scale.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/parameter_validation/unexpected_key_in_value_at_instant.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/parameter_validation/unexpected_key_in_value_history.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/parameter_validation/unknown_key_beside_values.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/parameter_validation/uprating_under_metadata.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/parameter_validation/wrong_date.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/parameter_validation/wrong_scale.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/parameter_validation/wrong_type_in_bracket.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/parameter_validation/wrong_type_in_brackets.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/parameter_validation/wrong_type_in_parameter.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/parameter_validation/wrong_type_in_scale.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/parameter_validation/wrong_type_in_value_history.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/parameter_validation/wrong_value.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/parameter_validation/yaml_hierarchy/node1.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/parameters/operations/test_interpolation.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/parameters/operations/test_nesting.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/parameters/operations/test_propagation.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/parameters/operations/test_scale_threshold_uprating.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/parameters/operations/test_uprating.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/parameters/test_numpy2_structured_arrays.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/parameters/test_parameter_metadata_clone.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/parameters/test_parameter_metadata_clone_property.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/parameters/test_vectorial_parameter_node_copy.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/parameters/test_vectorial_parameter_node_copy_property.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/parameters_fancy_indexing/__init__.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/parameters_fancy_indexing/bareme.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/parameters_fancy_indexing/local_tax.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/parameters_fancy_indexing/rate.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/parameters_fancy_indexing/test_fancy_indexing.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/parameters_fancy_indexing/test_fancy_indexing_property.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/simulations/test_formula_randomness_concurrency.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/tax_scales/__init__.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/tax_scales/test_abstract_rate_tax_scale.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/tax_scales/test_abstract_tax_scale.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/tax_scales/test_linear_average_rate_tax_scale.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/tax_scales/test_linear_average_rate_tax_scale_property.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/tax_scales/test_marginal_amount_tax_scale.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/tax_scales/test_marginal_rate_tax_scale.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/tax_scales/test_rate_scale_conversion_property.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/tax_scales/test_rate_tax_scale_like.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/tax_scales/test_single_amount_tax_scale.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/tax_scales/test_tax_scales_commons.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_apply_reform_holders.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_apply_reform_holders_property.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_apply_reform_invalidates_cache.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_apply_reform_preserves_user_inputs.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_assert_near_precision.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_axes.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_bincount_minlength.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_branch_helper_invalidation.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_branch_input_fixed_point.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_branch_input_fixed_point_property.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_branch_input_invalidation.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_branch_input_invalidation_property.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_branch_scoped_delete_arrays.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_branch_shared_arrays.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_branch_shared_arrays_differential.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_build_metadata.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_calculate_output.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_carry_over_order.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_carry_over_order_property.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_clone_invalidated_caches.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_clone_rebinding.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_clone_rebinding_property.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_clone_reform_baseline.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_clone_reform_baseline_property.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_countries.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_cycles.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_data_storage_dir.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_data_storage_dir_property.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_dataset_default_role.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_dataset_default_role_property.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_dataset_getattr.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_dataset_unknown_column_warning.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_default_simulation_count_property.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_disk_period_filenames.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_disk_storage_delete_contained_periods.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_disk_storage_delete_property.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_disk_storage_differential.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_disk_storage_ownership.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_docs_deployment.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_dump_restore.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_dump_restore_property.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_entities.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_eternity_subperiods.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_extensions.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_fast_cache.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_fast_cache_contained_periods.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_fast_cache_contained_periods_property.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_fast_cache_guards.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_formulas.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_group_population_empty.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_group_population_reductions_property.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_holder_branch_fallback.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_holder_write_fast_cache.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_holder_write_fast_cache_property.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_holders.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_input_tier_invalidation.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_join_with_persons_identity.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_join_with_persons_identity_property.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_known_periods_branch_visibility.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_known_periods_branch_visibility_property.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_macro_cache_not_singleton.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_medium_fixes.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_microsimulation_person_accessor.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_microsimulation_weights.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_on_disk_storage_clones.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_opt_out_cache.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_option_result_cache.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_option_result_cache_property.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_option_result_input_provenance.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_own_period_input_overlapping_cache.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_pandas3_compatibility.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_parameter_security.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_parameters.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_periods.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_projectors.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_reform_baseline_system.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_reform_parameter_isolation.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_reform_period_keys.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_reforms.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_registered_input_deletion.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_release_tagging.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_rerun_fixture_isolation.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_restore_input_provenance.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_restore_input_registry.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_restore_input_registry_property.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_set_input_helper_order.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_set_input_helper_order_property.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_simulation_builder.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_simulation_copy_pickle.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_simulation_copy_pickle_property.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_simulations.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_stable_hash_seed.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_stale_frame_cache.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_storage_anchored_periods.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_storage_delete_branch.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_storage_input_index.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_storage_shared_index.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_storage_shared_index_differential.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_subsample_baseline_branch.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_subsample_computed_values.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_subsample_computed_values_property.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_subsample_deleted_inputs.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_subsample_entity_weight_totals.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_subsample_inputs_only.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_subsample_inputs_only_property.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_subsample_invalidates_cache.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_subsample_membership_ids.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_subsample_restore_inputs.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_subsample_sampling_period.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_subsample_sampling_period_property.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_subsample_structural_ids.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_subsample_weight_fallback.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_tax_benefit_system_cache_identity.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_tracers.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_tracing_parameter_isolation.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_tracing_parameter_isolation_properties.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_uprating_order.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_uprating_order_property.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_user_input_keys.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_user_input_keys_property.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_user_input_keys_soundness.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_variable_code_sharing.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_variable_code_sharing_property.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/test_yaml.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/tools/__init__.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/tools/test_assert_near.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/tools/test_google_cloud.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/tools/test_hugging_face.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/tools/test_runner/test_gc_pause.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/tools/test_runner/test_yaml_runner.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/variables/test_adds.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/variables/test_annualize.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/variables/test_bounds.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/variables/test_defined_for.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/variables/test_formula_randomness.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/variables/test_non_numeric_uprating_and_defined_for.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/variables/test_subtracts.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/variables/test_subtracts_sign.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/variables/test_variable_clone.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/variables/test_variable_formula_determinism.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/variables/test_variable_uprating.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/core/variables/test_variables.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/fixtures/__init__.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/fixtures/appclient.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/fixtures/branch_input_invalidation.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/fixtures/branch_shared_arrays.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/fixtures/carry_over.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/fixtures/data_storage_dir.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/fixtures/disk_storage.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/fixtures/entities.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/fixtures/fast_cache_contained_periods.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/fixtures/option_caches.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/fixtures/parameter_metadata_clones.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/fixtures/reform_holders.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/fixtures/set_input_helper_order.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/fixtures/simulation_copy.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/fixtures/simulations.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/fixtures/subsample_inputs.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/fixtures/taxbenefitsystems.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/fixtures/tracing.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/fixtures/uprated_inputs.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/fixtures/uprating_order.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/fixtures/variables.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/fixtures/vectorial_parameter_nodes.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/fixtures/yaml_tests/__init__.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/fixtures/yaml_tests/directory/subdirectory/test_4.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/fixtures/yaml_tests/directory/test_1.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/fixtures/yaml_tests/directory/test_2.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/fixtures/yaml_tests/failing_test_absolute_error_margin.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/fixtures/yaml_tests/failing_test_relative_error_margin.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/fixtures/yaml_tests/test_absolute_error_margin.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/fixtures/yaml_tests/test_failure.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/fixtures/yaml_tests/test_name_filter.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/fixtures/yaml_tests/test_relative_error_margin.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/fixtures/yaml_tests/test_success.yml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/fixtures/yaml_tests/test_with_anchors.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/fixtures/yaml_tests/test_with_extension.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/fixtures/yaml_tests/test_with_reform.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/fixtures/yaml_tests/test_with_reform_2.yaml +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/smoke/test_country_init.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/tests/smoke/test_us.py +0 -0
- {policyengine_core-3.35.0 → policyengine_core-3.36.0}/uv.lock +0 -0
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [3.36.0] - 2026-11-13
|
|
2
|
+
|
|
3
|
+
### Added
|
|
4
|
+
|
|
5
|
+
- Uprating metadata can name a statutory base: with `base: {period, value}`, uprating computes each projected value as the base amount plus the increase the index implies over the base period, rounding that increase rather than the uprated amount. Base mode computes the increase exactly on the decimals the inputs print as, rounds an exact half up, and treats every recorded decimal as exact, including a computed float's printed value, so a higher index never projects a lower amount from a positive base. `base.floor: true` keeps the index ratio at or above 1, for statutes that add the percentage (if any) by which an index exceeds its base-year level.
|
|
6
|
+
|
|
7
|
+
|
|
1
8
|
## [3.35.0] - 2026-11-13
|
|
2
9
|
|
|
3
10
|
### Added
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: policyengine-core
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.36.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>
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
# Writing parameters
|
|
2
|
+
|
|
3
|
+
**Parameters** are values that can change over time (but are the same for an entire country package, i.e. they can't be different for different entities). The `parameters/` folder of a country package contains the **parameter tree**, a tree of parameter nodes (objects that hold parameters as children) containing parameters or subnodes. A parameter node can be represented either as a folder, or a YAML file. Parameters are stored in parameter files. For example, a parameter tree might have the following structure in a country repo:
|
|
4
|
+
|
|
5
|
+
```{eval-rst}
|
|
6
|
+
.. code:: none
|
|
7
|
+
|
|
8
|
+
parameters/
|
|
9
|
+
├── child_benefit/
|
|
10
|
+
│ ├── basic.yaml
|
|
11
|
+
│ ├── child.yaml
|
|
12
|
+
| ├── family.yaml
|
|
13
|
+
│ └── index.yaml # Contains metadata for the child_benefit node.
|
|
14
|
+
├── income_tax/
|
|
15
|
+
│ ├── basic.yaml
|
|
16
|
+
│ ├── personal.yaml
|
|
17
|
+
│ └── thresholds.yaml
|
|
18
|
+
├── national_insurance/
|
|
19
|
+
│ ├── basic.yaml
|
|
20
|
+
│ ├── employee.yaml
|
|
21
|
+
│ └── thresholds.yaml
|
|
22
|
+
└── universal_credit/
|
|
23
|
+
├── basic.yaml
|
|
24
|
+
├── child.yaml
|
|
25
|
+
└── family.yaml
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Parameter values
|
|
29
|
+
|
|
30
|
+
Parameters are defined as a function of time, and are evaluated at a given instant. To achieve this, parameters must be defined with a **value history**: a set of time-dated values (where the value at a given instant is the last-set value before that instant). For example, the `child_benefit.basic.amount` parameter might have the following value history:
|
|
31
|
+
|
|
32
|
+
```yaml
|
|
33
|
+
values:
|
|
34
|
+
2019-04-01: 20.00
|
|
35
|
+
2019-04-02: 21.00
|
|
36
|
+
2019-04-03: 22.00
|
|
37
|
+
2019-04-04: 23.00
|
|
38
|
+
2019-04-05: 24.00
|
|
39
|
+
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Metadata
|
|
43
|
+
|
|
44
|
+
Each parameter (or parameter node) can also set **metadata**: data that describes the parameter, such as its name, description, and units. While the metadata for each parameter and node is freeform, using the schemas defined in `policyengine_core.data_structures` will ensure consistency between country packages, and better maintainability.
|
|
45
|
+
|
|
46
|
+
Here's an example metadata specification for the `child_benefit.basic.amount` parameter:
|
|
47
|
+
|
|
48
|
+
```yaml
|
|
49
|
+
description: The UK provides this Child Benefit per child.
|
|
50
|
+
|
|
51
|
+
metadata:
|
|
52
|
+
label: Child Benefit
|
|
53
|
+
period: year
|
|
54
|
+
unit: currency-GBP
|
|
55
|
+
reference:
|
|
56
|
+
- label: GOV.UK | Child Benefit
|
|
57
|
+
href: https://www.gov.uk/government/publications/child-benefit-rates-and-thresholds/child-benefit-rates-and-thresholds
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### Metadata in copies
|
|
61
|
+
|
|
62
|
+
`clone()` on a parameter tree, which `TaxBenefitSystem.clone()`, reforms and simulation clones use, gives every node, parameter, dated value and scale in the copy its own metadata dict. The values in that dict are the same objects as in the source. Setting, updating or removing a key changes only the tree it is made on. To change a nested value, such as one entry of a `reference` list, replace the key with a new value instead of editing the list or dict in place, which would change every copy that shares it:
|
|
63
|
+
|
|
64
|
+
```python
|
|
65
|
+
parameter.metadata["reference"] = [*parameter.metadata["reference"], new_reference]
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
The same holds within one tree: a dated value written in dictionary form (`value:`, with or without `metadata:`) holds its parameter's metadata values, and `propagate_parameter_metadata` gives a node's descendants the node's values.
|
|
69
|
+
|
|
70
|
+
## Uprating
|
|
71
|
+
|
|
72
|
+
A parameter's `uprating` metadata extends its value history with another parameter, the index, such as a price index. When a tax-benefit system loads its parameters, `uprate_parameters` adds a value at each instant where the index has a value after the parameter's last explicit value (or, in chained mode, after `start_instant` when the metadata sets one). Uprating never changes an explicit value, so a new explicit value always replaces a projection.
|
|
73
|
+
|
|
74
|
+
### Chained mode
|
|
75
|
+
|
|
76
|
+
By default, uprating scales the last explicit value, at instant `L`, by the index's change since then:
|
|
77
|
+
|
|
78
|
+
```none
|
|
79
|
+
value(t) = value(L) × index(t) / index(L)
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
```yaml
|
|
83
|
+
metadata:
|
|
84
|
+
uprating:
|
|
85
|
+
parameter: gov.example.price_index
|
|
86
|
+
rounding:
|
|
87
|
+
type: downwards # or nearest, or upwards
|
|
88
|
+
interval: 50
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
`rounding` rounds the uprated amount, as a floating-point number, to a multiple of `interval`; `nearest` takes an exact half to the even multiple. A bare float, such as `rounding: 0.01`, rounds to the nearest multiple. Chained mode also takes `start_instant`, to project from an instant other than the last explicit value; `at_defined_interval`, to uprate on a fixed cadence; and `parameter: self`, to extend the parameter's own growth.
|
|
92
|
+
|
|
93
|
+
### Base mode
|
|
94
|
+
|
|
95
|
+
Some statutes index a fixed base amount and round the increase rather than the increased amount. 26 U.S.C. 63(c)(7)(B)(ii), for example, increases the $23,625 head-of-household standard deduction by the cost-of-living adjustment since 2024 and rounds that increase down to a multiple of $50. A `base` block opts a parameter into this rule:
|
|
96
|
+
|
|
97
|
+
```yaml
|
|
98
|
+
metadata:
|
|
99
|
+
uprating:
|
|
100
|
+
parameter: gov.example.price_index
|
|
101
|
+
base:
|
|
102
|
+
period: 2025
|
|
103
|
+
value: 23_625
|
|
104
|
+
floor: true
|
|
105
|
+
rounding:
|
|
106
|
+
type: downwards
|
|
107
|
+
interval: 50
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
For each instant `t` where the index has a value after the last explicit value, and no earlier than `base.period`, base mode computes
|
|
111
|
+
|
|
112
|
+
```none
|
|
113
|
+
value(t) = base + round(base × (index(t) / index(base.period) − 1))
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
applying `rounding`'s type and interval to the increase. A bare number, such as `rounding: 10`, rounds to the nearest multiple. Without `rounding`, `value(t) = base × index(t) / index(base.period)`.
|
|
117
|
+
|
|
118
|
+
- `base.period` is a year, such as `2025`, or a date, such as `1997-01-01`. It names the base in the index's own periods, since base mode reads the index there. Where the index's value at period `Y` measures calendar year `Y − 1`, as in the example above, a statute's base year `Y − 1` is `period: Y`.
|
|
119
|
+
- `base.value` defaults to the parameter's own value at `base.period`. When the parameter has a value there, a stated `base.value` must match it to one part in a billion, which catches a period one year off. State it when the parameter has no value at the base period, such as a 1997 base for a parameter whose history starts later; elsewhere, leaving it out lets the base follow a reform (see below).
|
|
120
|
+
- `base.floor: true` counts the index as no lower than its base-period level: base mode uses `max(index(t) / index(base.period), 1)` as the ratio, so a positive base never projects below itself. Statutes that add "the percentage (if any) by which" an index exceeds its base-year level floor the adjustment this way; 26 U.S.C. 1(f)(3), which sets the cost-of-living adjustment in the example above, is one. Without `floor`, an index below its base-period level gives a value below the base.
|
|
121
|
+
- Base mode takes only `parameter`, `base` and `rounding`. It raises an error for `start_instant`, `at_defined_interval`, `parameter: self` and any other key, rather than ignore them.
|
|
122
|
+
- Base mode computes the increase exactly, in rational arithmetic on the decimals the base, the index values and the interval print as, so an index written as `102.6` counts as 102.6. A 40% rise on $1,400 is exactly $560, though floats compute it as 559.9999999999998, so rounding down to $10 keeps all of it. `nearest` takes an exact half up: a $25 increase on a $10 interval becomes $30.
|
|
123
|
+
- Every recorded decimal is exact, including the printed value of a computed float. Base mode does not guess an index's precision from its digit count or move an increase onto a nearby rounding boundary. Supply the intended precision in the index itself; for example, a recorded value of `100.69999999999999` is below `100.7` and can round to a lower amount.
|
|
124
|
+
- An infinite base, such as a scale's `-.inf` lowest threshold, stays infinite.
|
|
125
|
+
|
|
126
|
+
### Base mode and reforms
|
|
127
|
+
|
|
128
|
+
Base mode's projections depend on the explicit values only through the base amount, not on the values just before them. That matters where reforms apply before uprating, as in a `TaxBenefitSystem` that loads its parameters and receives a `reform`: it applies the reform, then uprates. Take the head-of-household example and a reform that sets $30,000 from some date on:
|
|
129
|
+
|
|
130
|
+
- From 2026 on, the reform sets 2026 to $30,000, and the base is still $23,625, so 2027 follows the statute again. Chained mode would instead project 2027 from $30,000.
|
|
131
|
+
- From 2020 on, the reform also sets the base period's value. With `base.value` left out, $30,000 becomes the base and the projections index it. A stated `base.value` of $23,625 no longer matches, and uprating raises an error that says to leave it out.
|
|
132
|
+
|
|
133
|
+
A reform that should hold its value in later years can give it a range covering them, such as `2026-01-01.2100-12-31`. Country packages that apply reforms after uprating, as PolicyEngine US does, see projected values as before: a reform replaces them from its start.
|
|
134
|
+
|
|
135
|
+
### How the modes differ
|
|
136
|
+
|
|
137
|
+
Without rounding, the modes agree up to floating-point error whenever the explicit values follow the index from the base: if `value(L) = base × index(L) / index(base)`, chained mode's `value(L) × index(t) / index(L)` equals base mode's `base × index(t) / index(base)`.
|
|
138
|
+
|
|
139
|
+
With rounding, they round different quantities. Chained mode rounds the whole amount, so every value it projects is a multiple of the interval. Base mode rounds the increase, so its values are the base plus a multiple of the interval, and a base off the interval's grid stays off it. Rev. Proc. 2026-35 prints two 2027 amounts of this kind, which chained mode cannot produce:
|
|
140
|
+
|
|
141
|
+
- Section 3.15 sets the head-of-household standard deduction at $24,925: the $23,625 base plus $1,300, a multiple of $50. $24,925 is not.
|
|
142
|
+
- Section 3.29 sets the long-term care premium limit for ages 41 to 50 at $945: the $375 base in 26 U.S.C. 213(d)(10)(A) plus $570, an increase that section 213(d)(10)(B)(i) rounds to the nearest $10. $945 is not a multiple of $10.
|
|
143
|
+
|
|
144
|
+
Chained mode also carries rounding forward when it starts from a published, rounded value. Take a $2,000 base, an increase rounded down to $100, and an index 4.9% above its base level in year 1 and 10% above it in year 2. The year-1 amount is $2,000, since $98 rounds down to $0. Base mode gives $2,200 for year 2. Chained mode from the year-1 amount gives $2,000 × 1.10 / 1.049 = $2,097.24, which rounds down to $2,000.
|
|
145
|
+
|
|
146
|
+
### Metadata for parameters
|
|
147
|
+
|
|
148
|
+
```{eval-rst}
|
|
149
|
+
.. autoclass:: policyengine_core.data_structures.ParameterMetadata
|
|
150
|
+
:members:
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
### Metadata for parameter nodes
|
|
154
|
+
|
|
155
|
+
```{eval-rst}
|
|
156
|
+
.. autoclass:: policyengine_core.data_structures.ParameterNodeMetadata
|
|
157
|
+
:members:
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
## Specifying references
|
|
161
|
+
|
|
162
|
+
```{eval-rst}
|
|
163
|
+
.. autoclass:: policyengine_core.data_structures.Reference
|
|
164
|
+
:members:
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
## Units
|
|
168
|
+
|
|
169
|
+
```{eval-rst}
|
|
170
|
+
.. autoclass:: policyengine_core.data_structures.Unit
|
|
171
|
+
:members:
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
## Other specifications
|
|
175
|
+
|
|
176
|
+
```{eval-rst}
|
|
177
|
+
.. automodule:: policyengine_core.data_structures.parameter_metadata
|
|
178
|
+
:members:
|
|
179
|
+
:show-inheritance:
|
|
180
|
+
:exclude-members: ParameterMetadata, Reference, Unit
|
|
181
|
+
|
|
182
|
+
.. automodule:: policyengine_core.data_structures.parameter_node_metadata
|
|
183
|
+
:members:
|
|
184
|
+
:show-inheritance:
|
|
185
|
+
:exclude-members: ParameterNodeMetadata
|
|
186
|
+
```
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
from typing import List, Union
|
|
2
|
+
|
|
3
|
+
from .reference import Reference
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class UpratingIndex(str):
|
|
7
|
+
"""
|
|
8
|
+
The name of a parameter whose values are used to uprate a parameter node.
|
|
9
|
+
"""
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class SelfUprating(UpratingIndex):
|
|
13
|
+
"""
|
|
14
|
+
A special value ("self") that indicates that the parameter node should be uprated based on the fixed rate increase between two points in its history.
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class UpratingRoundingConfig(dict):
|
|
19
|
+
type: str
|
|
20
|
+
"""Either 'nearest', 'upwards' or 'downwards'."""
|
|
21
|
+
|
|
22
|
+
interval: float
|
|
23
|
+
"""The interval to round to."""
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class UpratingBase(dict):
|
|
27
|
+
"""
|
|
28
|
+
The statutory base amount that base-mode uprating projects from.
|
|
29
|
+
"""
|
|
30
|
+
|
|
31
|
+
period: Union[int, str]
|
|
32
|
+
"""
|
|
33
|
+
The period of the base amount, in the uprating index's own periods: a year, such as 2025, or a date, such as 1997-01-01. Base mode measures each increase from the index's value here.
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
value: float
|
|
37
|
+
"""
|
|
38
|
+
The base amount. Optional: it defaults to the parameter's value at ``period``, and when the parameter has a value there, a stated ``value`` must match it to one part in a billion.
|
|
39
|
+
"""
|
|
40
|
+
|
|
41
|
+
floor: bool
|
|
42
|
+
"""
|
|
43
|
+
Optional, default false. When true, base mode counts the index as no lower than its base-period level, so the index ratio is at least 1 and a positive base never projects below itself, as in statutes that add the percentage (if any) by which an index exceeds its base-year level.
|
|
44
|
+
"""
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
class UpratingSchema(dict):
|
|
48
|
+
"""
|
|
49
|
+
A schema for uprating a parameter node.
|
|
50
|
+
"""
|
|
51
|
+
|
|
52
|
+
parameter: UpratingIndex
|
|
53
|
+
"""
|
|
54
|
+
The name of the parameter whose values are used to uprate the parameter node.
|
|
55
|
+
"""
|
|
56
|
+
|
|
57
|
+
start_instant: int
|
|
58
|
+
"""
|
|
59
|
+
The instant to add uprated values after. Chained mode only.
|
|
60
|
+
"""
|
|
61
|
+
|
|
62
|
+
rounding: Union[UpratingRoundingConfig, float]
|
|
63
|
+
"""
|
|
64
|
+
The rounding to apply. Chained mode rounds the uprated amount, taking an exact half to the even multiple; base mode rounds the increase over the base amount, computed exactly on the decimals the inputs print as, taking an exact half up. A bare float rounds to the nearest multiple of it in either mode, and base mode also reads a bare int that way.
|
|
65
|
+
"""
|
|
66
|
+
|
|
67
|
+
base: UpratingBase
|
|
68
|
+
"""
|
|
69
|
+
Opts in to base mode: each value after the last explicit one is the base amount plus the increase the index implies since the base period, with ``rounding`` applied to that increase and, with ``floor``, an index ratio of at least 1. Base mode takes only ``parameter``, ``base`` and ``rounding``.
|
|
70
|
+
"""
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
class ParameterMetadata:
|
|
74
|
+
"""A single legislative value that can change over time."""
|
|
75
|
+
|
|
76
|
+
name: str
|
|
77
|
+
"""The name identifying this parameter. Should be snake-case and Python-safe."""
|
|
78
|
+
|
|
79
|
+
label: str
|
|
80
|
+
"""The display text to use for the parameter. Should be short and less than a full sentence."""
|
|
81
|
+
|
|
82
|
+
description: str
|
|
83
|
+
"""A longer description of the parameter."""
|
|
84
|
+
|
|
85
|
+
documentation: str
|
|
86
|
+
"""Any relevant information about the parameter's *implementation* (not its legislative meaning- use the description for that field)."""
|
|
87
|
+
|
|
88
|
+
reference: List[Reference]
|
|
89
|
+
"""A list of references to legislation or other documents that define this parameter."""
|
|
90
|
+
|
|
91
|
+
unit: str
|
|
92
|
+
"""The real-world meaning of a particular value."""
|
|
93
|
+
|
|
94
|
+
uprating: Union[UpratingIndex, UpratingSchema]
|
|
95
|
+
"""The schema for uprating this parameter.
|
|
96
|
+
|
|
97
|
+
By default (chained mode), the process for uprating parameter $X$ based on parameter $Y$ is as follows:
|
|
98
|
+
|
|
99
|
+
1. Look at $X$ and $Y$ at the same time, and move forward in history.
|
|
100
|
+
|
|
101
|
+
2. If $Y$ increases by $z$%, then increase $X$ by $z$%.
|
|
102
|
+
|
|
103
|
+
With ``base`` (base mode), each value after the last explicit one is a fixed base amount plus the increase $Y$ implies since the base period. See "Uprating" in the parameters guide.
|
|
104
|
+
"""
|