policyengine-uk 2.45.0__py3-none-any.whl → 2.45.1__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/simulation.py +2 -0
- policyengine_uk/tax_benefit_system.py +8 -0
- {policyengine_uk-2.45.0.dist-info → policyengine_uk-2.45.1.dist-info}/METADATA +1 -1
- {policyengine_uk-2.45.0.dist-info → policyengine_uk-2.45.1.dist-info}/RECORD +6 -6
- {policyengine_uk-2.45.0.dist-info → policyengine_uk-2.45.1.dist-info}/WHEEL +0 -0
- {policyengine_uk-2.45.0.dist-info → policyengine_uk-2.45.1.dist-info}/licenses/LICENSE +0 -0
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.1
|
|
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
|
|
@@ -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.1.dist-info/METADATA,sha256=3Ic8Erdzpsb59DIllkD8rAMdq449rfO-Sn_8M7EMOH0,3956
|
|
1384
|
+
policyengine_uk-2.45.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
1385
|
+
policyengine_uk-2.45.1.dist-info/licenses/LICENSE,sha256=dql8h4yceoMhuzlcK0TT_i-NgTFNIZsgE47Q4t3dUYI,34520
|
|
1386
|
+
policyengine_uk-2.45.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|