policyengine-uk 2.43.4__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:
@@ -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.4
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
@@ -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.4.dist-info/METADATA,sha256=zSNA8LoZZDX4ZBX_hWyz2W7EcCAfTV6_oaEnfdyBkKk,3919
1380
- policyengine_uk-2.43.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
1381
- policyengine_uk-2.43.4.dist-info/licenses/LICENSE,sha256=dql8h4yceoMhuzlcK0TT_i-NgTFNIZsgE47Q4t3dUYI,34520
1382
- policyengine_uk-2.43.4.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,,