policyengine 3.1.5__tar.gz → 3.1.6__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-3.1.5 → policyengine-3.1.6}/CHANGELOG.md +7 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/PKG-INFO +1 -1
- {policyengine-3.1.5 → policyengine-3.1.6}/changelog.yaml +5 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/pyproject.toml +1 -1
- policyengine-3.1.6/src/policyengine/__pycache__/__init__.cpython-313.pyc +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/src/policyengine/core/parameter.py +2 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/src/policyengine/tax_benefit_models/uk/model.py +3 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/src/policyengine/tax_benefit_models/us/model.py +3 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/src/policyengine.egg-info/PKG-INFO +1 -1
- policyengine-3.1.5/src/policyengine/__pycache__/__init__.cpython-313.pyc +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/.claude/policyengine-guide.md +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/.claude/quick-reference.md +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/.github/CONTRIBUTING.md +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/.github/changelog_template.md +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/.github/fetch_version.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/.github/get-changelog-diff.sh +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/.github/has-functional-changes.sh +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/.github/is-version-number-acceptable.sh +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/.github/publish-git-tag.sh +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/.github/workflows/code_changes.yaml +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/.github/workflows/docs.yml +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/.github/workflows/pr_code_changes.yaml +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/.github/workflows/pr_docs_changes.yaml +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/.github/workflows/versioning.yaml +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/.gitignore +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/CLAUDE.md +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/LICENSE +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/Makefile +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/README.md +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/changelog_entry.yaml +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/docs/.gitignore +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/docs/core-concepts.md +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/docs/country-models-uk.md +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/docs/country-models-us.md +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/docs/dev.md +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/docs/index.md +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/docs/myst.yml +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/docs/visualisation.md +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/examples/employment_income_variation_uk.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/examples/employment_income_variation_us.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/examples/income_bands_uk.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/examples/income_distribution_us.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/examples/policy_change_uk.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/examples/speedtest_us_simulation.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/setup.cfg +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/src/policyengine/__init__.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/src/policyengine/core/__init__.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/src/policyengine/core/dataset.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/src/policyengine/core/dataset_version.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/src/policyengine/core/dynamic.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/src/policyengine/core/output.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/src/policyengine/core/parameter_value.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/src/policyengine/core/policy.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/src/policyengine/core/simulation.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/src/policyengine/core/tax_benefit_model.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/src/policyengine/core/tax_benefit_model_version.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/src/policyengine/core/variable.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/src/policyengine/outputs/__init__.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/src/policyengine/outputs/aggregate.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/src/policyengine/outputs/change_aggregate.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/src/policyengine/outputs/decile_impact.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/src/policyengine/tax_benefit_models/uk/__init__.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/src/policyengine/tax_benefit_models/uk/analysis.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/src/policyengine/tax_benefit_models/uk/datasets.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/src/policyengine/tax_benefit_models/uk/outputs.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/src/policyengine/tax_benefit_models/uk.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/src/policyengine/tax_benefit_models/us/__init__.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/src/policyengine/tax_benefit_models/us/analysis.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/src/policyengine/tax_benefit_models/us/datasets.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/src/policyengine/tax_benefit_models/us/outputs.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/src/policyengine/tax_benefit_models/us.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/src/policyengine/utils/__init__.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/src/policyengine/utils/dates.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/src/policyengine/utils/parametric_reforms.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/src/policyengine/utils/plotting.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/src/policyengine.egg-info/SOURCES.txt +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/src/policyengine.egg-info/dependency_links.txt +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/src/policyengine.egg-info/requires.txt +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/src/policyengine.egg-info/top_level.txt +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/tests/test_aggregate.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/tests/test_change_aggregate.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/tests/test_entity_mapping.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/tests/test_get_parameter_variable.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/tests/test_uk_dataset.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/tests/test_us_datasets.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/tests/test_us_entity_mapping.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/tests/test_us_simulation.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.6}/uv.lock +0 -0
|
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [3.1.6] - 2025-11-24 16:23:57
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- Parameter values now accessible from models.
|
|
13
|
+
|
|
8
14
|
## [3.1.5] - 2025-11-21 12:59:36
|
|
9
15
|
|
|
10
16
|
### Fixed
|
|
@@ -227,6 +233,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
227
233
|
|
|
228
234
|
|
|
229
235
|
|
|
236
|
+
[3.1.6]: https://github.com/PolicyEngine/policyengine.py/compare/3.1.5...3.1.6
|
|
230
237
|
[3.1.5]: https://github.com/PolicyEngine/policyengine.py/compare/3.1.4...3.1.5
|
|
231
238
|
[3.1.4]: https://github.com/PolicyEngine/policyengine.py/compare/3.1.3...3.1.4
|
|
232
239
|
[3.1.3]: https://github.com/PolicyEngine/policyengine.py/compare/3.1.2...3.1.3
|
|
Binary file
|
|
@@ -2,6 +2,7 @@ from uuid import uuid4
|
|
|
2
2
|
|
|
3
3
|
from pydantic import BaseModel, Field
|
|
4
4
|
|
|
5
|
+
from .parameter_value import ParameterValue
|
|
5
6
|
from .tax_benefit_model_version import TaxBenefitModelVersion
|
|
6
7
|
|
|
7
8
|
|
|
@@ -13,3 +14,4 @@ class Parameter(BaseModel):
|
|
|
13
14
|
data_type: type | None = None
|
|
14
15
|
tax_benefit_model_version: TaxBenefitModelVersion
|
|
15
16
|
unit: str | None = None
|
|
17
|
+
parameter_values: list["ParameterValue"] = Field(default_factory=list)
|
|
@@ -177,6 +177,9 @@ class PolicyEngineUKLatest(TaxBenefitModelVersion):
|
|
|
177
177
|
value=param_at_instant.value,
|
|
178
178
|
)
|
|
179
179
|
self.parameter_values.append(parameter_value)
|
|
180
|
+
self.get_parameter(parameter.name).parameter_values.append(
|
|
181
|
+
parameter_value
|
|
182
|
+
)
|
|
180
183
|
|
|
181
184
|
def run(self, simulation: "Simulation") -> "Simulation":
|
|
182
185
|
from policyengine_uk import Microsimulation
|
|
@@ -167,6 +167,9 @@ class PolicyEngineUSLatest(TaxBenefitModelVersion):
|
|
|
167
167
|
value=param_at_instant.value,
|
|
168
168
|
)
|
|
169
169
|
self.parameter_values.append(parameter_value)
|
|
170
|
+
self.get_parameter(parameter.name).parameter_values.append(
|
|
171
|
+
parameter_value
|
|
172
|
+
)
|
|
170
173
|
|
|
171
174
|
def run(self, simulation: "Simulation") -> "Simulation":
|
|
172
175
|
from policyengine_us import Microsimulation
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{policyengine-3.1.5 → policyengine-3.1.6}/src/policyengine/core/tax_benefit_model_version.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{policyengine-3.1.5 → policyengine-3.1.6}/src/policyengine/tax_benefit_models/uk/__init__.py
RENAMED
|
File without changes
|
{policyengine-3.1.5 → policyengine-3.1.6}/src/policyengine/tax_benefit_models/uk/analysis.py
RENAMED
|
File without changes
|
{policyengine-3.1.5 → policyengine-3.1.6}/src/policyengine/tax_benefit_models/uk/datasets.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{policyengine-3.1.5 → policyengine-3.1.6}/src/policyengine/tax_benefit_models/us/__init__.py
RENAMED
|
File without changes
|
{policyengine-3.1.5 → policyengine-3.1.6}/src/policyengine/tax_benefit_models/us/analysis.py
RENAMED
|
File without changes
|
{policyengine-3.1.5 → policyengine-3.1.6}/src/policyengine/tax_benefit_models/us/datasets.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|