policyengine 3.1.5__tar.gz → 3.1.7__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.7}/CHANGELOG.md +14 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/PKG-INFO +1 -1
- {policyengine-3.1.5 → policyengine-3.1.7}/changelog.yaml +10 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/pyproject.toml +1 -1
- policyengine-3.1.7/src/policyengine/__pycache__/__init__.cpython-313.pyc +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/src/policyengine/core/parameter.py +6 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/src/policyengine/core/parameter_value.py +4 -2
- {policyengine-3.1.5 → policyengine-3.1.7}/src/policyengine/tax_benefit_models/uk/model.py +3 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/src/policyengine/tax_benefit_models/us/model.py +3 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/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.7}/.claude/policyengine-guide.md +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/.claude/quick-reference.md +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/.github/CONTRIBUTING.md +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/.github/changelog_template.md +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/.github/fetch_version.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/.github/get-changelog-diff.sh +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/.github/has-functional-changes.sh +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/.github/is-version-number-acceptable.sh +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/.github/publish-git-tag.sh +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/.github/workflows/code_changes.yaml +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/.github/workflows/docs.yml +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/.github/workflows/pr_code_changes.yaml +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/.github/workflows/pr_docs_changes.yaml +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/.github/workflows/versioning.yaml +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/.gitignore +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/CLAUDE.md +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/LICENSE +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/Makefile +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/README.md +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/changelog_entry.yaml +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/docs/.gitignore +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/docs/core-concepts.md +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/docs/country-models-uk.md +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/docs/country-models-us.md +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/docs/dev.md +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/docs/index.md +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/docs/myst.yml +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/docs/visualisation.md +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/examples/employment_income_variation_uk.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/examples/employment_income_variation_us.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/examples/income_bands_uk.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/examples/income_distribution_us.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/examples/policy_change_uk.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/examples/speedtest_us_simulation.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/setup.cfg +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/src/policyengine/__init__.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/src/policyengine/core/__init__.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/src/policyengine/core/dataset.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/src/policyengine/core/dataset_version.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/src/policyengine/core/dynamic.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/src/policyengine/core/output.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/src/policyengine/core/policy.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/src/policyengine/core/simulation.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/src/policyengine/core/tax_benefit_model.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/src/policyengine/core/tax_benefit_model_version.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/src/policyengine/core/variable.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/src/policyengine/outputs/__init__.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/src/policyengine/outputs/aggregate.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/src/policyengine/outputs/change_aggregate.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/src/policyengine/outputs/decile_impact.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/src/policyengine/tax_benefit_models/uk/__init__.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/src/policyengine/tax_benefit_models/uk/analysis.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/src/policyengine/tax_benefit_models/uk/datasets.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/src/policyengine/tax_benefit_models/uk/outputs.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/src/policyengine/tax_benefit_models/uk.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/src/policyengine/tax_benefit_models/us/__init__.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/src/policyengine/tax_benefit_models/us/analysis.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/src/policyengine/tax_benefit_models/us/datasets.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/src/policyengine/tax_benefit_models/us/outputs.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/src/policyengine/tax_benefit_models/us.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/src/policyengine/utils/__init__.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/src/policyengine/utils/dates.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/src/policyengine/utils/parametric_reforms.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/src/policyengine/utils/plotting.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/src/policyengine.egg-info/SOURCES.txt +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/src/policyengine.egg-info/dependency_links.txt +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/src/policyengine.egg-info/requires.txt +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/src/policyengine.egg-info/top_level.txt +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/tests/test_aggregate.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/tests/test_change_aggregate.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/tests/test_entity_mapping.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/tests/test_get_parameter_variable.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/tests/test_uk_dataset.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/tests/test_us_datasets.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/tests/test_us_entity_mapping.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/tests/test_us_simulation.py +0 -0
- {policyengine-3.1.5 → policyengine-3.1.7}/uv.lock +0 -0
|
@@ -5,6 +5,18 @@ 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.7] - 2025-11-24 16:34:53
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- Build error
|
|
13
|
+
|
|
14
|
+
## [3.1.6] - 2025-11-24 16:23:57
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
|
|
18
|
+
- Parameter values now accessible from models.
|
|
19
|
+
|
|
8
20
|
## [3.1.5] - 2025-11-21 12:59:36
|
|
9
21
|
|
|
10
22
|
### Fixed
|
|
@@ -227,6 +239,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
227
239
|
|
|
228
240
|
|
|
229
241
|
|
|
242
|
+
[3.1.7]: https://github.com/PolicyEngine/policyengine.py/compare/3.1.6...3.1.7
|
|
243
|
+
[3.1.6]: https://github.com/PolicyEngine/policyengine.py/compare/3.1.5...3.1.6
|
|
230
244
|
[3.1.5]: https://github.com/PolicyEngine/policyengine.py/compare/3.1.4...3.1.5
|
|
231
245
|
[3.1.4]: https://github.com/PolicyEngine/policyengine.py/compare/3.1.3...3.1.4
|
|
232
246
|
[3.1.3]: https://github.com/PolicyEngine/policyengine.py/compare/3.1.2...3.1.3
|
|
@@ -185,3 +185,13 @@
|
|
|
185
185
|
fixed:
|
|
186
186
|
- Minor fixes
|
|
187
187
|
date: 2025-11-21 12:59:36
|
|
188
|
+
- bump: patch
|
|
189
|
+
changes:
|
|
190
|
+
fixed:
|
|
191
|
+
- Parameter values now accessible from models.
|
|
192
|
+
date: 2025-11-24 16:23:57
|
|
193
|
+
- bump: patch
|
|
194
|
+
changes:
|
|
195
|
+
fixed:
|
|
196
|
+
- Build error
|
|
197
|
+
date: 2025-11-24 16:34:53
|
|
Binary file
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
+
from typing import TYPE_CHECKING
|
|
1
2
|
from uuid import uuid4
|
|
2
3
|
|
|
3
4
|
from pydantic import BaseModel, Field
|
|
4
5
|
|
|
6
|
+
from .parameter_value import ParameterValue
|
|
5
7
|
from .tax_benefit_model_version import TaxBenefitModelVersion
|
|
6
8
|
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
from .parameter_value import ParameterValue
|
|
11
|
+
|
|
7
12
|
|
|
8
13
|
class Parameter(BaseModel):
|
|
9
14
|
id: str = Field(default_factory=lambda: str(uuid4()))
|
|
@@ -13,3 +18,4 @@ class Parameter(BaseModel):
|
|
|
13
18
|
data_type: type | None = None
|
|
14
19
|
tax_benefit_model_version: TaxBenefitModelVersion
|
|
15
20
|
unit: str | None = None
|
|
21
|
+
parameter_values: list["ParameterValue"] = Field(default_factory=list)
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
from datetime import datetime
|
|
2
|
+
from typing import TYPE_CHECKING
|
|
2
3
|
from uuid import uuid4
|
|
3
4
|
|
|
4
5
|
from pydantic import BaseModel, Field
|
|
5
6
|
|
|
6
|
-
|
|
7
|
+
if TYPE_CHECKING:
|
|
8
|
+
from .parameter import Parameter
|
|
7
9
|
|
|
8
10
|
|
|
9
11
|
class ParameterValue(BaseModel):
|
|
10
12
|
id: str = Field(default_factory=lambda: str(uuid4()))
|
|
11
|
-
parameter: Parameter | None = None
|
|
13
|
+
parameter: "Parameter | None" = None
|
|
12
14
|
value: float | int | str | bool | list | None = None
|
|
13
15
|
start_date: datetime
|
|
14
16
|
end_date: datetime | None = None
|
|
@@ -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
|
{policyengine-3.1.5 → policyengine-3.1.7}/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.7}/src/policyengine/tax_benefit_models/uk/__init__.py
RENAMED
|
File without changes
|
{policyengine-3.1.5 → policyengine-3.1.7}/src/policyengine/tax_benefit_models/uk/analysis.py
RENAMED
|
File without changes
|
{policyengine-3.1.5 → policyengine-3.1.7}/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.7}/src/policyengine/tax_benefit_models/us/__init__.py
RENAMED
|
File without changes
|
{policyengine-3.1.5 → policyengine-3.1.7}/src/policyengine/tax_benefit_models/us/analysis.py
RENAMED
|
File without changes
|
{policyengine-3.1.5 → policyengine-3.1.7}/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
|