policyengine-uk 2.45.1__py3-none-any.whl → 2.45.3__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)[
@@ -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.0185
11
+ value: 0.02
12
12
  metadata:
13
13
  reference:
14
- - title: National Insurance Contributions (Reduction in Rates) Act 2024 s 1
15
- href: https://www.legislation.gov.uk/ukpga/2024/5/section/1
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
- name: NI_add_rate
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: policyengine-uk
3
- Version: 2.45.1
3
+ Version: 2.45.3
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
@@ -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
@@ -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=27_wnSiLAkvmaYx8YayjA4hqZ3QifL6xvGRX22olMU0,844
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.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,,
1383
+ policyengine_uk-2.45.3.dist-info/METADATA,sha256=xlyKCtKB1N-DEXWHb1CynlkbDfbuiI_lmbFq9v8Feqs,3956
1384
+ policyengine_uk-2.45.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
1385
+ policyengine_uk-2.45.3.dist-info/licenses/LICENSE,sha256=dql8h4yceoMhuzlcK0TT_i-NgTFNIZsgE47Q4t3dUYI,34520
1386
+ policyengine_uk-2.45.3.dist-info/RECORD,,