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

@@ -4,6 +4,7 @@ import yaml
4
4
  from policyengine_core.parameters import ParameterNode
5
5
  from pathlib import Path
6
6
  import numpy as np
7
+ import logging
7
8
 
8
9
 
9
10
  def extend_single_year_dataset(
@@ -147,9 +148,10 @@ def uprate_rent(
147
148
  social_rent_growth = growth.obr.social_rent(year)
148
149
 
149
150
  if year < 2022:
150
- raise ValueError(
151
- "Rent uprating is not supported for years before 2022."
151
+ logging.warning(
152
+ "Rent uprating is not supported for years before 2022. Not applying uprating."
152
153
  )
154
+ pass
153
155
  elif year < 2025:
154
156
  # We have regional growth rates for private rent.
155
157
  regional_growth_rate = growth.ons.private_rental_prices(year)[
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: policyengine-uk
3
- Version: 2.45.2
3
+ Version: 2.45.4
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
@@ -21,7 +21,6 @@ Classifier: Programming Language :: Python :: 3.12
21
21
  Classifier: Programming Language :: Python :: 3.13
22
22
  Classifier: Topic :: Scientific/Engineering :: Information Analysis
23
23
  Requires-Python: >=3.10
24
- Requires-Dist: jupyter-book>=2.0.0a0
25
24
  Requires-Dist: microdf-python>=1.0.2
26
25
  Requires-Dist: policyengine-core>=3.19.3
27
26
  Requires-Dist: pydantic>=2.11.7
@@ -8,7 +8,7 @@ policyengine_uk/system.py,sha256=Z-ax_ImUq5k4tycuThczTxQNW5iTE6ikBJIBQdKfIzU,91
8
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
- policyengine_uk/data/economic_assumptions.py,sha256=4ZmE6z8Bbf21n0Hm-IpsS04Astg2NJAypv9TdA_udEk,6189
11
+ policyengine_uk/data/economic_assumptions.py,sha256=A0lJpaAORE3fyBHAo2CbKRuio6HYlnq3KyFvypqvIfg,6239
12
12
  policyengine_uk/data/uprating_indices.yaml,sha256=kQtfeGWyqge4dbJhs0iF4kTMqovuegill_Zfs8orJi4,2394
13
13
  policyengine_uk/parameters/gov/README.md,sha256=bHUep1_2pLHD3Or8SwjStOWXDIbW9OuYxOd4ml8IXcM,13
14
14
  policyengine_uk/parameters/gov/benefit_uprating_cpi.yaml,sha256=2zOSdJeUhDZYYsKE2vLkcK-UbKNoOSVwfac0QIAp02g,250
@@ -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.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,,
1383
+ policyengine_uk-2.45.4.dist-info/METADATA,sha256=76Kz17OUMRmIFC-_BSoR4K2jqZJYz9Sl1H_Jt_cRd3Q,3919
1384
+ policyengine_uk-2.45.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
1385
+ policyengine_uk-2.45.4.dist-info/licenses/LICENSE,sha256=dql8h4yceoMhuzlcK0TT_i-NgTFNIZsgE47Q4t3dUYI,34520
1386
+ policyengine_uk-2.45.4.dist-info/RECORD,,