policyengine-uk 2.43.3__py3-none-any.whl → 2.43.5__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.

@@ -53,6 +53,7 @@ class UKSingleYearDataset:
53
53
  household: pd.DataFrame = None,
54
54
  fiscal_year: int = 2025,
55
55
  ):
56
+ file_path = str(file_path) if file_path else None
56
57
  if file_path is not None:
57
58
  self.validate_file_path(file_path)
58
59
  with pd.HDFStore(file_path) as f:
@@ -1,6 +1,7 @@
1
- description: Households in England or Wales with pensioners earning under this amount of yearly taxable income are eligible for the Winter Fuel Payment.
1
+ description: Households in England or Wales with pensioners earning under this amount of yearly taxable income are eligible for the Winter Fuel Payment.
2
2
  values:
3
3
  2000-01-01: 0
4
+ 2025-01-01: 35_000
4
5
  metadata:
5
6
  unit: currency-GBP
6
7
  label: Winter Fuel Payment maximum taxable income
@@ -1,6 +1,7 @@
1
1
  description: When this is true, households in England or Wales with pensioners earning under the maximum taxable income are eligible for the Winter Fuel Payment.
2
2
  values:
3
3
  2000-01-01: false
4
+ 2025-01-01: true
4
5
  metadata:
5
6
  unit: bool
6
7
  label: WFA maximum taxable income eligibility
@@ -38,7 +38,7 @@ def create_economic_assumption_indices(
38
38
  start_year = int(descendant.values_list[-1].instant_str[:4])
39
39
  values = {start_year: 1.0}
40
40
 
41
- for year in range(start_year + 1, 2030):
41
+ for year in range(start_year + 1, 2040):
42
42
  yoy_growth = descendant(year)
43
43
  indices_value = round(
44
44
  values[year - 1] * (1 + yoy_growth),
@@ -198,6 +198,7 @@ class Simulation(CoreSimulation):
198
198
  else:
199
199
  dataset = Dataset.from_file(dataset, self.default_input_period)
200
200
  self.build_from_dataset(dataset)
201
+ self.dataset = dataset
201
202
 
202
203
  def build_from_dataframe(self, df: pd.DataFrame) -> None:
203
204
  """Build simulation from a pandas DataFrame.
@@ -308,6 +309,7 @@ class Simulation(CoreSimulation):
308
309
 
309
310
  dataset = extend_single_year_dataset(dataset)
310
311
  self.build_from_multi_year_dataset(dataset)
312
+ self.dataset = dataset
311
313
 
312
314
  def build_from_multi_year_dataset(
313
315
  self, dataset: UKMultiYearDataset
@@ -335,6 +337,8 @@ class Simulation(CoreSimulation):
335
337
  continue
336
338
  self.set_input(variable, year, table[variable])
337
339
 
340
+ self.dataset = dataset
341
+
338
342
  def build_from_ids(
339
343
  self,
340
344
  person_id: np.ndarray,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: policyengine-uk
3
- Version: 2.43.3
3
+ Version: 2.43.5
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,11 +3,11 @@ 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=Cibz4giX9Ue7j7IqqBFwUkUKhhBvH9RpjAQ4eIDWUK8,14738
6
+ policyengine_uk/simulation.py,sha256=OXnUxgUSkSH9gKbfS3bp42PQmklMTR3-AJQZRoNK-MA,14836
7
7
  policyengine_uk/system.py,sha256=Z-ax_ImUq5k4tycuThczTxQNW5iTE6ikBJIBQdKfIzU,91
8
8
  policyengine_uk/tax_benefit_system.py,sha256=7cahlxO7v-SzmyYSsteklCpkMuFOyOMomcYeh0LoRK8,4762
9
9
  policyengine_uk/data/__init__.py,sha256=J0bZ3WnvPzZ4qfVLYcwOc4lziMUMdbcMqJ3xwjoekbM,101
10
- policyengine_uk/data/dataset_schema.py,sha256=4SPUqDmzTsmmWFaJIlpDzT7J6WvBDgxRPfUnbjjtFuQ,9854
10
+ policyengine_uk/data/dataset_schema.py,sha256=e4ST_kHSdlwX7Fd8rO5MRr2kXMejIJGXb0mUlKlVnEE,9912
11
11
  policyengine_uk/data/economic_assumptions.py,sha256=4ZmE6z8Bbf21n0Hm-IpsS04Astg2NJAypv9TdA_udEk,6189
12
12
  policyengine_uk/data/uprating_indices.yaml,sha256=kQtfeGWyqge4dbJhs0iF4kTMqovuegill_Zfs8orJi4,2394
13
13
  policyengine_uk/parameters/gov/README.md,sha256=bHUep1_2pLHD3Or8SwjStOWXDIbW9OuYxOd4ml8IXcM,13
@@ -311,9 +311,9 @@ policyengine_uk/parameters/gov/dwp/winter_fuel_payment/amount/lower.yaml,sha256=
311
311
  policyengine_uk/parameters/gov/dwp/winter_fuel_payment/eligibility/higher_age_requirement.yaml,sha256=ZDE_w3GvtK9THT55qTpDFeUvpdTAj8KsZp5lrp6zjRw,332
312
312
  policyengine_uk/parameters/gov/dwp/winter_fuel_payment/eligibility/require_benefits.yaml,sha256=7vvHW5NXpaSixFayBKFXFCu6WToGlmH3ejJELVbdfDw,583
313
313
  policyengine_uk/parameters/gov/dwp/winter_fuel_payment/eligibility/state_pension_age_requirement.yaml,sha256=8wXlC5wX-ceoZ-s2kOk4IhAiomsXSCM-vnRRbL2kChA,356
314
- policyengine_uk/parameters/gov/dwp/winter_fuel_payment/eligibility/taxable_income_test/maximum_taxable_income.yaml,sha256=gLj2M2zoCMPuZ-0UgNSf-FTA5I4CCXhxBsd3qVro7Ck,260
315
- policyengine_uk/parameters/gov/dwp/winter_fuel_payment/eligibility/taxable_income_test/use_maximum_taxable_income.yaml,sha256=pHldHvNHeGhG0mcn7LvjYA3b-q_AxrAxm5bu-mkTn1A,261
316
- policyengine_uk/parameters/gov/economic_assumptions/create_economic_assumption_indices.py,sha256=Z4dYghSit5gXo4V3wBpnLIc9zgTX4cfEyb_TUlJkTGY,1937
314
+ policyengine_uk/parameters/gov/dwp/winter_fuel_payment/eligibility/taxable_income_test/maximum_taxable_income.yaml,sha256=vtXLTgcLg1tmvnsbmJUv45maVEzzKQTWK-lFYTGzuVk,280
315
+ policyengine_uk/parameters/gov/dwp/winter_fuel_payment/eligibility/taxable_income_test/use_maximum_taxable_income.yaml,sha256=MKnXmHJaDJbpO-mLemudo5n-yQMCByuVwUtlxItOvjg,280
316
+ policyengine_uk/parameters/gov/economic_assumptions/create_economic_assumption_indices.py,sha256=uxJy4X30P8NRSL7dH757bgpPANMdf5efar8Bu7uR78w,1937
317
317
  policyengine_uk/parameters/gov/economic_assumptions/lag_average_earnings.py,sha256=ksHcyUQkLAJmKizCeSg8j0hzPc7ajgIvbExWLgCra4U,701
318
318
  policyengine_uk/parameters/gov/economic_assumptions/lag_cpi.py,sha256=IdtaMLN1_OSu-RFZsQV8vBlbOvXsPlnNlsOuinRHrxg,642
319
319
  policyengine_uk/parameters/gov/economic_assumptions/yoy_growth.yaml,sha256=k2xxY4YvioJ0agEOHwebcEWVwQbgePrnXO1dvogGWCs,17673
@@ -1376,7 +1376,7 @@ policyengine_uk/variables/misc/spi_imputed.py,sha256=iPVlBF_TisM0rtKvO-3-PQ2UYCe
1376
1376
  policyengine_uk/variables/misc/uc_migrated.py,sha256=zFNcUJaO8gwmbL1iY9GKgUt3G6J9yrCraqBV_5dCvlM,306
1377
1377
  policyengine_uk/variables/misc/categories/lower_middle_or_higher.py,sha256=C54tHYz2DmOyvQYCC1bF8RJwRZinhAq_e3aYC-9F5fM,157
1378
1378
  policyengine_uk/variables/misc/categories/lower_or_higher.py,sha256=81NIbLLabRr9NwjpUZDuV8IV8_mqmp5NM-CZvt55TwE,129
1379
- policyengine_uk-2.43.3.dist-info/METADATA,sha256=muVrVCujRolykGjBO72kmey2C87KHi6fAgZp3pud_zQ,3919
1380
- policyengine_uk-2.43.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
1381
- policyengine_uk-2.43.3.dist-info/licenses/LICENSE,sha256=dql8h4yceoMhuzlcK0TT_i-NgTFNIZsgE47Q4t3dUYI,34520
1382
- policyengine_uk-2.43.3.dist-info/RECORD,,
1379
+ policyengine_uk-2.43.5.dist-info/METADATA,sha256=95USKFOTU6-TS4CpFvNzJP-kMArAcjDeutKpLIVsd68,3919
1380
+ policyengine_uk-2.43.5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
1381
+ policyengine_uk-2.43.5.dist-info/licenses/LICENSE,sha256=dql8h4yceoMhuzlcK0TT_i-NgTFNIZsgE47Q4t3dUYI,34520
1382
+ policyengine_uk-2.43.5.dist-info/RECORD,,