policyengine-uk 2.45.0__py3-none-any.whl → 2.45.2__py3-none-any.whl
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.
Potentially problematic release.
This version of policyengine-uk might be problematic. Click here for more details.
- policyengine_uk/parameters/gov/hmrc/national_insurance/class_1/rates/employee/additional.yaml +4 -6
- policyengine_uk/simulation.py +2 -0
- policyengine_uk/tax_benefit_system.py +8 -0
- {policyengine_uk-2.45.0.dist-info → policyengine_uk-2.45.2.dist-info}/METADATA +1 -1
- {policyengine_uk-2.45.0.dist-info → policyengine_uk-2.45.2.dist-info}/RECORD +7 -7
- {policyengine_uk-2.45.0.dist-info → policyengine_uk-2.45.2.dist-info}/WHEEL +0 -0
- {policyengine_uk-2.45.0.dist-info → policyengine_uk-2.45.2.dist-info}/licenses/LICENSE +0 -0
policyengine_uk/parameters/gov/hmrc/national_insurance/class_1/rates/employee/additional.yaml
CHANGED
|
@@ -8,13 +8,11 @@ values:
|
|
|
8
8
|
- title: Autumn Budget and Spending Review 2022
|
|
9
9
|
href: https://assets.publishing.service.gov.uk/government/uploads/system/uploads/attachment_data/file/1043689/Budget_AB2021_Web_Accessible.pdf
|
|
10
10
|
2024-04-04:
|
|
11
|
-
value: 0.
|
|
11
|
+
value: 0.02
|
|
12
12
|
metadata:
|
|
13
13
|
reference:
|
|
14
|
-
- title:
|
|
15
|
-
href: https://www.legislation.gov.uk/ukpga/
|
|
14
|
+
- title: Social Security Contributions and Benefits Act 1992
|
|
15
|
+
href: https://www.legislation.gov.uk/ukpga/1992/4/section/8
|
|
16
16
|
metadata:
|
|
17
17
|
label: NI Class 1 additional rate
|
|
18
|
-
|
|
19
|
-
unit: /1
|
|
20
|
-
reference: https://assets.publishing.service.gov.uk/government/uploads/system/uploads/attachment_data/file/882271/Table-a4.pdf
|
|
18
|
+
unit: /1
|
policyengine_uk/simulation.py
CHANGED
|
@@ -56,6 +56,13 @@ class CountryTaxBenefitSystem(TaxBenefitSystem):
|
|
|
56
56
|
modelled_policies = COUNTRY_DIR / "modelled_policies.yaml"
|
|
57
57
|
auto_carry_over_input_variables: bool = True
|
|
58
58
|
|
|
59
|
+
def reset_parameter_caches(self):
|
|
60
|
+
"""Reset all caches in the tax-benefit system."""
|
|
61
|
+
self._parameters_at_instant_cache = {}
|
|
62
|
+
for parameter in self.parameters.get_descendants():
|
|
63
|
+
parameter._at_instant_cache = {}
|
|
64
|
+
self.parameters._at_instant_cache = {}
|
|
65
|
+
|
|
59
66
|
def reset_parameters(self) -> None:
|
|
60
67
|
"""Reset parameters by reloading from the parameters directory."""
|
|
61
68
|
self._parameters_at_instant_cache = {}
|
|
@@ -90,6 +97,7 @@ class CountryTaxBenefitSystem(TaxBenefitSystem):
|
|
|
90
97
|
self.parameters.gov = convert_to_fiscal_year_parameters(
|
|
91
98
|
self.parameters.gov
|
|
92
99
|
)
|
|
100
|
+
self.reset_parameter_caches()
|
|
93
101
|
|
|
94
102
|
def __init__(self):
|
|
95
103
|
"""Initialize the UK tax-benefit system with entities and parameters."""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: policyengine-uk
|
|
3
|
-
Version: 2.45.
|
|
3
|
+
Version: 2.45.2
|
|
4
4
|
Summary: PolicyEngine tax and benefit system for the UK
|
|
5
5
|
Project-URL: Homepage, https://github.com/PolicyEngine/policyengine-uk
|
|
6
6
|
Project-URL: Repository, https://github.com/PolicyEngine/policyengine-uk
|
|
@@ -3,9 +3,9 @@ policyengine_uk/entities.py,sha256=9yUbkUWQr3WydNE-gHhUudG97HGyXIZY3dkgQ6Z3t9A,1
|
|
|
3
3
|
policyengine_uk/microsimulation.py,sha256=k2u8v6TlHiu8hO5gCjd8-qOsfzorCnjrKfnvs8cbGOc,2676
|
|
4
4
|
policyengine_uk/model_api.py,sha256=KdwJCL2HkXVxDpL6fCsCnQ9Sub6Kqp7Hyxlis3MNIx4,241
|
|
5
5
|
policyengine_uk/modelled_policies.yaml,sha256=TLhvmkuI9ip-Fjq63n66RzDErCkN8K4BzY6XLxLMtFg,463
|
|
6
|
-
policyengine_uk/simulation.py,sha256=
|
|
6
|
+
policyengine_uk/simulation.py,sha256=laMnITFnpWqrx1h6F_0WTfjKOiNAsrH9d9obQmrQ0k8,15215
|
|
7
7
|
policyengine_uk/system.py,sha256=Z-ax_ImUq5k4tycuThczTxQNW5iTE6ikBJIBQdKfIzU,91
|
|
8
|
-
policyengine_uk/tax_benefit_system.py,sha256=
|
|
8
|
+
policyengine_uk/tax_benefit_system.py,sha256=7d5zITUezBcVw9AGvwXsE2Tb_AN-3HY4jMcueFRFaD4,5096
|
|
9
9
|
policyengine_uk/data/__init__.py,sha256=J0bZ3WnvPzZ4qfVLYcwOc4lziMUMdbcMqJ3xwjoekbM,101
|
|
10
10
|
policyengine_uk/data/dataset_schema.py,sha256=e4ST_kHSdlwX7Fd8rO5MRr2kXMejIJGXb0mUlKlVnEE,9912
|
|
11
11
|
policyengine_uk/data/economic_assumptions.py,sha256=4ZmE6z8Bbf21n0Hm-IpsS04Astg2NJAypv9TdA_udEk,6189
|
|
@@ -388,7 +388,7 @@ policyengine_uk/parameters/gov/hmrc/national_insurance/class_1/README.md,sha256=
|
|
|
388
388
|
policyengine_uk/parameters/gov/hmrc/national_insurance/class_1/rates/README.md,sha256=7BQUZXeqLAYckXMwDUfcQBuFTvTECmSMdGf9xDeTXNY,8
|
|
389
389
|
policyengine_uk/parameters/gov/hmrc/national_insurance/class_1/rates/employer.yaml,sha256=-0Mvrd2dtxK4KxJ_2XAGILHx4IQ_4ULrWCQDF6HIozQ,642
|
|
390
390
|
policyengine_uk/parameters/gov/hmrc/national_insurance/class_1/rates/employee/README.md,sha256=I9TSeENJLqEroihEgmacXcpLSTYk6xD0rZIdDtoyRlI,11
|
|
391
|
-
policyengine_uk/parameters/gov/hmrc/national_insurance/class_1/rates/employee/additional.yaml,sha256=
|
|
391
|
+
policyengine_uk/parameters/gov/hmrc/national_insurance/class_1/rates/employee/additional.yaml,sha256=v0a67Hi2cqZS_jy1oWTBM_G8JueH8eECOKOVcHVZ8FY,677
|
|
392
392
|
policyengine_uk/parameters/gov/hmrc/national_insurance/class_1/rates/employee/main.yaml,sha256=TPGUGN6wMf5qU7-oOTB4J3yV-9JhVoFraxqUzfmj5wU,1347
|
|
393
393
|
policyengine_uk/parameters/gov/hmrc/national_insurance/class_1/thresholds/README.md,sha256=A3U8dX-UwsRqx6VISR_0HE3DvhJN-LedFoylZYQA4gg,13
|
|
394
394
|
policyengine_uk/parameters/gov/hmrc/national_insurance/class_1/thresholds/lower_earnings_limit.yaml,sha256=11ys64O-72FSt_bjyl2vZiYdgFNw_iGfhxzZh6a7wzE,1220
|
|
@@ -1380,7 +1380,7 @@ policyengine_uk/variables/misc/spi_imputed.py,sha256=iPVlBF_TisM0rtKvO-3-PQ2UYCe
|
|
|
1380
1380
|
policyengine_uk/variables/misc/uc_migrated.py,sha256=zFNcUJaO8gwmbL1iY9GKgUt3G6J9yrCraqBV_5dCvlM,306
|
|
1381
1381
|
policyengine_uk/variables/misc/categories/lower_middle_or_higher.py,sha256=C54tHYz2DmOyvQYCC1bF8RJwRZinhAq_e3aYC-9F5fM,157
|
|
1382
1382
|
policyengine_uk/variables/misc/categories/lower_or_higher.py,sha256=81NIbLLabRr9NwjpUZDuV8IV8_mqmp5NM-CZvt55TwE,129
|
|
1383
|
-
policyengine_uk-2.45.
|
|
1384
|
-
policyengine_uk-2.45.
|
|
1385
|
-
policyengine_uk-2.45.
|
|
1386
|
-
policyengine_uk-2.45.
|
|
1383
|
+
policyengine_uk-2.45.2.dist-info/METADATA,sha256=hrGS96gC2UURug6A5lGhj3gd7fFiIOzKhKrk5XDVpQE,3956
|
|
1384
|
+
policyengine_uk-2.45.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
1385
|
+
policyengine_uk-2.45.2.dist-info/licenses/LICENSE,sha256=dql8h4yceoMhuzlcK0TT_i-NgTFNIZsgE47Q4t3dUYI,34520
|
|
1386
|
+
policyengine_uk-2.45.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|