From 5a843d8fa2d050d3ea39cbc7a41b0a9fd1f2422e Mon Sep 17 00:00:00 2001 From: Vahid Ahmadi Date: Thu, 16 Apr 2026 10:48:07 +0100 Subject: [PATCH 1/3] Rename labor to labour in LSR parameters and variables Use British English spelling throughout the labour supply response module: directory names, file names, parameter labels, descriptions, import paths, and test references. Fixes #853. Co-Authored-By: Claude Opus 4.6 --- EASY_ISSUES.md | 12 ++++++++++++ changelog.d/853.md | 1 + .../labor_supply_responses/income_elasticity.yaml | 6 ------ .../substitution_elasticity.yaml | 6 ------ .../bounds/README.md | 0 .../bounds/effective_wage_rate_change.yaml | 0 .../bounds/income_change.yaml | 0 .../labour_supply_responses/income_elasticity.yaml | 6 ++++++ .../obr_elasticities.yaml | 2 +- .../substitution_elasticity.yaml | 6 ++++++ ...ponses.yaml => test_labour_supply_responses.yaml} | 0 policyengine_uk/tests/test_behavioral_responses.py | 6 +++--- ...as.py => test_labour_supply_response_formulas.py} | 8 ++++---- .../employment_income_behavioral_response.py | 4 ++-- .../income_elasticity_lsr.py | 4 ++-- .../relative_income_change.py | 2 +- .../relative_wage_change.py | 2 +- .../substitution_elasticity_lsr.py | 4 ++-- .../variables/input/employment_income_before_lsr.py | 2 +- 19 files changed, 42 insertions(+), 29 deletions(-) create mode 100644 EASY_ISSUES.md create mode 100644 changelog.d/853.md delete mode 100644 policyengine_uk/parameters/gov/simulation/labor_supply_responses/income_elasticity.yaml delete mode 100644 policyengine_uk/parameters/gov/simulation/labor_supply_responses/substitution_elasticity.yaml rename policyengine_uk/parameters/gov/simulation/{labor_supply_responses => labour_supply_responses}/bounds/README.md (100%) rename policyengine_uk/parameters/gov/simulation/{labor_supply_responses => labour_supply_responses}/bounds/effective_wage_rate_change.yaml (100%) rename policyengine_uk/parameters/gov/simulation/{labor_supply_responses => labour_supply_responses}/bounds/income_change.yaml (100%) create mode 100644 policyengine_uk/parameters/gov/simulation/labour_supply_responses/income_elasticity.yaml rename policyengine_uk/parameters/gov/simulation/{labor_supply_responses => labour_supply_responses}/obr_elasticities.yaml (86%) create mode 100644 policyengine_uk/parameters/gov/simulation/labour_supply_responses/substitution_elasticity.yaml rename policyengine_uk/tests/behavioral_responses/{test_labor_supply_responses.yaml => test_labour_supply_responses.yaml} (100%) rename policyengine_uk/tests/{test_labor_supply_response_formulas.py => test_labour_supply_response_formulas.py} (86%) rename policyengine_uk/variables/gov/simulation/{labor_supply_response => labour_supply_response}/employment_income_behavioral_response.py (92%) rename policyengine_uk/variables/gov/simulation/{labor_supply_response => labour_supply_response}/income_elasticity_lsr.py (79%) rename policyengine_uk/variables/gov/simulation/{labor_supply_response => labour_supply_response}/relative_income_change.py (95%) rename policyengine_uk/variables/gov/simulation/{labor_supply_response => labour_supply_response}/relative_wage_change.py (94%) rename policyengine_uk/variables/gov/simulation/{labor_supply_response => labour_supply_response}/substitution_elasticity_lsr.py (79%) diff --git a/EASY_ISSUES.md b/EASY_ISSUES.md new file mode 100644 index 000000000..4e1684c77 --- /dev/null +++ b/EASY_ISSUES.md @@ -0,0 +1,12 @@ +# Easy-to-Address Issues + +1. **#853** - `labor` -> `labour` in LSR parameters — Simple string rename in parameter files. +2. **#665** - Remove `name` metadata tag — Remove an unused metadata field from parameter/variable files. +3. **#451** - Change label for `hours_worked` — Change a single variable's label to "Hours worked per week". +4. **#634** - Incorrect description on non-residential SDLT rate — Fix a wrong description string. +5. **#614** - CTC calibration budgetary impact description states WTC — Fix a mislabeled description in a YAML file. +6. **#625** - Broken image in documentation — Fix a broken image link in the docs. +7. **#920** - Remove deps redundant with policyengine-core — Remove duplicate dependencies from the package config. +8. **#1371** - Default `would_claim_uc` to True — Change a single default value from `False` to `True`. +9. **#414** - Remove allowance variables that are only parameters — Delete simple wrapper variables that just return a parameter value. +10. **#1015** - Make minimum wage for non-apprentices a scale parameter based on age — Restructure a YAML parameter file to use a scale format. diff --git a/changelog.d/853.md b/changelog.d/853.md new file mode 100644 index 000000000..76a6167c9 --- /dev/null +++ b/changelog.d/853.md @@ -0,0 +1 @@ +- Rename `labor` to `labour` in LSR parameter and variable paths, labels, and descriptions to use British English spelling diff --git a/policyengine_uk/parameters/gov/simulation/labor_supply_responses/income_elasticity.yaml b/policyengine_uk/parameters/gov/simulation/labor_supply_responses/income_elasticity.yaml deleted file mode 100644 index e195e996c..000000000 --- a/policyengine_uk/parameters/gov/simulation/labor_supply_responses/income_elasticity.yaml +++ /dev/null @@ -1,6 +0,0 @@ -description: Percent change in labor supply given a 1% change in disposable income. This applies only to employment income. -values: - 2020-01-01: 0 -metadata: - unit: /1 - label: Income elasticity of labor supply diff --git a/policyengine_uk/parameters/gov/simulation/labor_supply_responses/substitution_elasticity.yaml b/policyengine_uk/parameters/gov/simulation/labor_supply_responses/substitution_elasticity.yaml deleted file mode 100644 index 0d589d23e..000000000 --- a/policyengine_uk/parameters/gov/simulation/labor_supply_responses/substitution_elasticity.yaml +++ /dev/null @@ -1,6 +0,0 @@ -description: Percent change in labor supply given a 1% change in the effective marginal wage. This applies only to employment income. -values: - 2020-01-01: 0 -metadata: - unit: /1 - label: Substitution elasticity of labor supply diff --git a/policyengine_uk/parameters/gov/simulation/labor_supply_responses/bounds/README.md b/policyengine_uk/parameters/gov/simulation/labour_supply_responses/bounds/README.md similarity index 100% rename from policyengine_uk/parameters/gov/simulation/labor_supply_responses/bounds/README.md rename to policyengine_uk/parameters/gov/simulation/labour_supply_responses/bounds/README.md diff --git a/policyengine_uk/parameters/gov/simulation/labor_supply_responses/bounds/effective_wage_rate_change.yaml b/policyengine_uk/parameters/gov/simulation/labour_supply_responses/bounds/effective_wage_rate_change.yaml similarity index 100% rename from policyengine_uk/parameters/gov/simulation/labor_supply_responses/bounds/effective_wage_rate_change.yaml rename to policyengine_uk/parameters/gov/simulation/labour_supply_responses/bounds/effective_wage_rate_change.yaml diff --git a/policyengine_uk/parameters/gov/simulation/labor_supply_responses/bounds/income_change.yaml b/policyengine_uk/parameters/gov/simulation/labour_supply_responses/bounds/income_change.yaml similarity index 100% rename from policyengine_uk/parameters/gov/simulation/labor_supply_responses/bounds/income_change.yaml rename to policyengine_uk/parameters/gov/simulation/labour_supply_responses/bounds/income_change.yaml diff --git a/policyengine_uk/parameters/gov/simulation/labour_supply_responses/income_elasticity.yaml b/policyengine_uk/parameters/gov/simulation/labour_supply_responses/income_elasticity.yaml new file mode 100644 index 000000000..d14451844 --- /dev/null +++ b/policyengine_uk/parameters/gov/simulation/labour_supply_responses/income_elasticity.yaml @@ -0,0 +1,6 @@ +description: Percent change in labour supply given a 1% change in disposable income. This applies only to employment income. +values: + 2020-01-01: 0 +metadata: + unit: /1 + label: Income elasticity of labour supply diff --git a/policyengine_uk/parameters/gov/simulation/labor_supply_responses/obr_elasticities.yaml b/policyengine_uk/parameters/gov/simulation/labour_supply_responses/obr_elasticities.yaml similarity index 86% rename from policyengine_uk/parameters/gov/simulation/labor_supply_responses/obr_elasticities.yaml rename to policyengine_uk/parameters/gov/simulation/labour_supply_responses/obr_elasticities.yaml index 1863cef1e..041dd41fc 100644 --- a/policyengine_uk/parameters/gov/simulation/labor_supply_responses/obr_elasticities.yaml +++ b/policyengine_uk/parameters/gov/simulation/labour_supply_responses/obr_elasticities.yaml @@ -1,4 +1,4 @@ -description: Use the OBR's progression elasticities for the labor supply responses. +description: Use the OBR's progression elasticities for the labour supply responses. values: 2000-01-01: 0 metadata: diff --git a/policyengine_uk/parameters/gov/simulation/labour_supply_responses/substitution_elasticity.yaml b/policyengine_uk/parameters/gov/simulation/labour_supply_responses/substitution_elasticity.yaml new file mode 100644 index 000000000..b24801e92 --- /dev/null +++ b/policyengine_uk/parameters/gov/simulation/labour_supply_responses/substitution_elasticity.yaml @@ -0,0 +1,6 @@ +description: Percent change in labour supply given a 1% change in the effective marginal wage. This applies only to employment income. +values: + 2020-01-01: 0 +metadata: + unit: /1 + label: Substitution elasticity of labour supply diff --git a/policyengine_uk/tests/behavioral_responses/test_labor_supply_responses.yaml b/policyengine_uk/tests/behavioral_responses/test_labour_supply_responses.yaml similarity index 100% rename from policyengine_uk/tests/behavioral_responses/test_labor_supply_responses.yaml rename to policyengine_uk/tests/behavioral_responses/test_labour_supply_responses.yaml diff --git a/policyengine_uk/tests/test_behavioral_responses.py b/policyengine_uk/tests/test_behavioral_responses.py index aab173151..c77ed8bfa 100644 --- a/policyengine_uk/tests/test_behavioral_responses.py +++ b/policyengine_uk/tests/test_behavioral_responses.py @@ -1,5 +1,5 @@ """ -Tests for behavioral labor supply responses. +Tests for behavioral labour supply responses. This test module validates that the behavioral response system works correctly and that all the critical fixes are functioning: @@ -29,7 +29,7 @@ # Load YAML test cases yaml_file = ( - Path(__file__).parent / "behavioral_responses" / "test_labor_supply_responses.yaml" + Path(__file__).parent / "behavioral_responses" / "test_labour_supply_responses.yaml" ) with open(yaml_file, "r") as f: yaml_content = f.read() @@ -37,7 +37,7 @@ class TestBehavioralResponses: - """Test behavioral labor supply responses functionality""" + """Test behavioral labour supply responses functionality""" def test_yaml_file_structure(self): """Test that YAML file loads correctly and has expected structure""" diff --git a/policyengine_uk/tests/test_labor_supply_response_formulas.py b/policyengine_uk/tests/test_labour_supply_response_formulas.py similarity index 86% rename from policyengine_uk/tests/test_labor_supply_response_formulas.py rename to policyengine_uk/tests/test_labour_supply_response_formulas.py index bb165e587..fbf89382b 100644 --- a/policyengine_uk/tests/test_labor_supply_response_formulas.py +++ b/policyengine_uk/tests/test_labour_supply_response_formulas.py @@ -6,10 +6,10 @@ from policyengine_uk.dynamics.progression import ( calculate_employment_income_change, ) -from policyengine_uk.variables.gov.simulation.labor_supply_response.income_elasticity_lsr import ( +from policyengine_uk.variables.gov.simulation.labour_supply_response.income_elasticity_lsr import ( income_elasticity_lsr, ) -from policyengine_uk.variables.gov.simulation.labor_supply_response.substitution_elasticity_lsr import ( +from policyengine_uk.variables.gov.simulation.labour_supply_response.substitution_elasticity_lsr import ( substitution_elasticity_lsr, ) @@ -26,7 +26,7 @@ class FakeParameters: def __init__(self, income_elasticity=0.1, substitution_elasticity=0.2): self.gov = SimpleNamespace( simulation=SimpleNamespace( - labor_supply_responses=SimpleNamespace( + labour_supply_responses=SimpleNamespace( income_elasticity=income_elasticity, substitution_elasticity=substitution_elasticity, ) @@ -67,7 +67,7 @@ def test_substitution_elasticity_lsr_clips_negative_earnings(): assert np.allclose(result, np.array([0.0, 0.0, 40.0])) -def test_progression_labor_supply_response_clips_negative_earnings(): +def test_progression_labour_supply_response_clips_negative_earnings(): result = calculate_employment_income_change( employment_income=np.array([-1_000.0, 0.0, 1_000.0]), derivative_changes=pd.DataFrame({"wage_rel_change": [0.1, 0.1, 0.1]}), diff --git a/policyengine_uk/variables/gov/simulation/labor_supply_response/employment_income_behavioral_response.py b/policyengine_uk/variables/gov/simulation/labour_supply_response/employment_income_behavioral_response.py similarity index 92% rename from policyengine_uk/variables/gov/simulation/labor_supply_response/employment_income_behavioral_response.py rename to policyengine_uk/variables/gov/simulation/labour_supply_response/employment_income_behavioral_response.py index bc6d03939..e9becafc4 100644 --- a/policyengine_uk/variables/gov/simulation/labor_supply_response/employment_income_behavioral_response.py +++ b/policyengine_uk/variables/gov/simulation/labour_supply_response/employment_income_behavioral_response.py @@ -4,12 +4,12 @@ class employment_income_behavioral_response(Variable): value_type = float entity = Person - label = "income-related labor supply change" + label = "income-related labour supply change" unit = GBP definition_period = YEAR def formula(person, period, parameters): - lsr = parameters(period).gov.simulation.labor_supply_responses + lsr = parameters(period).gov.simulation.labour_supply_responses simulation = person.simulation if simulation.baseline is None: return 0 # No reform, no impact diff --git a/policyengine_uk/variables/gov/simulation/labor_supply_response/income_elasticity_lsr.py b/policyengine_uk/variables/gov/simulation/labour_supply_response/income_elasticity_lsr.py similarity index 79% rename from policyengine_uk/variables/gov/simulation/labor_supply_response/income_elasticity_lsr.py rename to policyengine_uk/variables/gov/simulation/labour_supply_response/income_elasticity_lsr.py index 02c4db776..feccb02af 100644 --- a/policyengine_uk/variables/gov/simulation/labor_supply_response/income_elasticity_lsr.py +++ b/policyengine_uk/variables/gov/simulation/labour_supply_response/income_elasticity_lsr.py @@ -4,13 +4,13 @@ class income_elasticity_lsr(Variable): value_type = float entity = Person - label = "income elasticity of labor supply response" + label = "income elasticity of labour supply response" unit = GBP definition_period = YEAR requires_computation_after = "employment_income_behavioral_response" def formula(person, period, parameters): - lsr = parameters(period).gov.simulation.labor_supply_responses + lsr = parameters(period).gov.simulation.labour_supply_responses employment_income = max_(person("employment_income_before_lsr", period), 0) income_change = person("relative_income_change", period) diff --git a/policyengine_uk/variables/gov/simulation/labor_supply_response/relative_income_change.py b/policyengine_uk/variables/gov/simulation/labour_supply_response/relative_income_change.py similarity index 95% rename from policyengine_uk/variables/gov/simulation/labor_supply_response/relative_income_change.py rename to policyengine_uk/variables/gov/simulation/labour_supply_response/relative_income_change.py index 6c6b6c33e..b7a8d463e 100644 --- a/policyengine_uk/variables/gov/simulation/labor_supply_response/relative_income_change.py +++ b/policyengine_uk/variables/gov/simulation/labour_supply_response/relative_income_change.py @@ -26,7 +26,7 @@ def formula(person, period, parameters): net_income = measurement_person.household("household_net_income", period) income_change_bound = parameters( period - ).gov.simulation.labor_supply_responses.bounds.income_change + ).gov.simulation.labour_supply_responses.bounds.income_change # _c suffix for "clipped" baseline_net_income_c = np.clip(baseline_net_income, 1, None) net_income_c = np.clip(net_income, 1, None) diff --git a/policyengine_uk/variables/gov/simulation/labor_supply_response/relative_wage_change.py b/policyengine_uk/variables/gov/simulation/labour_supply_response/relative_wage_change.py similarity index 94% rename from policyengine_uk/variables/gov/simulation/labor_supply_response/relative_wage_change.py rename to policyengine_uk/variables/gov/simulation/labour_supply_response/relative_wage_change.py index 62b9d79ef..872c5d4fb 100644 --- a/policyengine_uk/variables/gov/simulation/labor_supply_response/relative_wage_change.py +++ b/policyengine_uk/variables/gov/simulation/labour_supply_response/relative_wage_change.py @@ -32,5 +32,5 @@ def formula(person, period, parameters): relative_change = (wage_rate_c - baseline_wage_c) / baseline_wage_c wage_change_bound = parameters( period - ).gov.simulation.labor_supply_responses.bounds.effective_wage_rate_change + ).gov.simulation.labour_supply_responses.bounds.effective_wage_rate_change return np.clip(relative_change, -wage_change_bound, wage_change_bound) diff --git a/policyengine_uk/variables/gov/simulation/labor_supply_response/substitution_elasticity_lsr.py b/policyengine_uk/variables/gov/simulation/labour_supply_response/substitution_elasticity_lsr.py similarity index 79% rename from policyengine_uk/variables/gov/simulation/labor_supply_response/substitution_elasticity_lsr.py rename to policyengine_uk/variables/gov/simulation/labour_supply_response/substitution_elasticity_lsr.py index 53b7a9e47..a8631bc94 100644 --- a/policyengine_uk/variables/gov/simulation/labor_supply_response/substitution_elasticity_lsr.py +++ b/policyengine_uk/variables/gov/simulation/labour_supply_response/substitution_elasticity_lsr.py @@ -4,13 +4,13 @@ class substitution_elasticity_lsr(Variable): value_type = float entity = Person - label = "substitution elasticity of labor supply response" + label = "substitution elasticity of labour supply response" unit = GBP definition_period = YEAR requires_computation_after = "employment_income_behavioral_response" def formula(person, period, parameters): - lsr = parameters(period).gov.simulation.labor_supply_responses + lsr = parameters(period).gov.simulation.labour_supply_responses employment_income = max_(person("employment_income_before_lsr", period), 0) wage_change = person("relative_wage_change", period) diff --git a/policyengine_uk/variables/input/employment_income_before_lsr.py b/policyengine_uk/variables/input/employment_income_before_lsr.py index 9e7438159..b5d63f602 100644 --- a/policyengine_uk/variables/input/employment_income_before_lsr.py +++ b/policyengine_uk/variables/input/employment_income_before_lsr.py @@ -4,7 +4,7 @@ class employment_income_before_lsr(Variable): value_type = float entity = Person - label = "employment income before labor supply responses" + label = "employment income before labour supply responses" unit = GBP definition_period = YEAR uprating = "gov.economic_assumptions.indices.obr.average_earnings" From 31156385f32098be8bf985627a67ec637b23e162 Mon Sep 17 00:00:00 2001 From: Vahid Ahmadi Date: Thu, 16 Apr 2026 13:24:05 +0100 Subject: [PATCH 2/3] Remove unrelated EASY_ISSUES file --- EASY_ISSUES.md | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 EASY_ISSUES.md diff --git a/EASY_ISSUES.md b/EASY_ISSUES.md deleted file mode 100644 index 4e1684c77..000000000 --- a/EASY_ISSUES.md +++ /dev/null @@ -1,12 +0,0 @@ -# Easy-to-Address Issues - -1. **#853** - `labor` -> `labour` in LSR parameters — Simple string rename in parameter files. -2. **#665** - Remove `name` metadata tag — Remove an unused metadata field from parameter/variable files. -3. **#451** - Change label for `hours_worked` — Change a single variable's label to "Hours worked per week". -4. **#634** - Incorrect description on non-residential SDLT rate — Fix a wrong description string. -5. **#614** - CTC calibration budgetary impact description states WTC — Fix a mislabeled description in a YAML file. -6. **#625** - Broken image in documentation — Fix a broken image link in the docs. -7. **#920** - Remove deps redundant with policyengine-core — Remove duplicate dependencies from the package config. -8. **#1371** - Default `would_claim_uc` to True — Change a single default value from `False` to `True`. -9. **#414** - Remove allowance variables that are only parameters — Delete simple wrapper variables that just return a parameter value. -10. **#1015** - Make minimum wage for non-apprentices a scale parameter based on age — Restructure a YAML parameter file to use a scale format. From 81f84a403c0f9824c4022a8db37bb7370808db0c Mon Sep 17 00:00:00 2001 From: Vahid Ahmadi Date: Mon, 20 Apr 2026 12:29:25 +0100 Subject: [PATCH 3/3] Add deprecation alias for legacy labor_supply_responses paths Mirror the two consumed paths (`income_elasticity` and `substitution_elasticity`) under the renamed `labour_supply_responses` tree back to `gov.simulation.labor_supply_responses.*`, so the legacy policyengine-app PolicyRightSidebar (which hard-codes the old paths) keeps working between this PR landing and the matching app PR rebuilding against the new path. Removes the merge-window breakage that would otherwise hit the LSR sliders. Remove this alias in a follow-up release once consumers (the app PR PolicyEngine/policyengine-app#2829) have migrated. Co-Authored-By: Claude Opus 4.7 (1M context) --- changelog.d/853.md | 2 +- .../labour_supply_responses/aliases.py | 34 +++++++++++++++++++ policyengine_uk/tax_benefit_system.py | 4 +++ 3 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 policyengine_uk/parameters/gov/simulation/labour_supply_responses/aliases.py diff --git a/changelog.d/853.md b/changelog.d/853.md index 76a6167c9..7666bb54a 100644 --- a/changelog.d/853.md +++ b/changelog.d/853.md @@ -1 +1 @@ -- Rename `labor` to `labour` in LSR parameter and variable paths, labels, and descriptions to use British English spelling +- Rename `labor` to `labour` in LSR parameter and variable paths, labels, and descriptions to use British English spelling. The two consumed paths (`gov.simulation.labor_supply_responses.income_elasticity` and `.substitution_elasticity`) remain available as deprecation aliases for one release so downstream consumers — particularly the legacy `policyengine-app` PolicyRightSidebar — keep working until they migrate. diff --git a/policyengine_uk/parameters/gov/simulation/labour_supply_responses/aliases.py b/policyengine_uk/parameters/gov/simulation/labour_supply_responses/aliases.py new file mode 100644 index 000000000..9fe1f30a0 --- /dev/null +++ b/policyengine_uk/parameters/gov/simulation/labour_supply_responses/aliases.py @@ -0,0 +1,34 @@ +"""Deprecation aliases mirroring the renamed `labour_supply_responses` parameters +under the legacy `labor_supply_responses` path. + +`policyengine-app` (legacy) hard-codes +`gov.simulation.labor_supply_responses.{income_elasticity,substitution_elasticity}` +in PolicyRightSidebar.jsx. Without this alias the LSR sliders break the +moment a deployed app rebuilds against this version of policyengine-uk. +The companion app PR (PolicyEngine/policyengine-app#2829) migrates to the +new path; remove this alias once that ships. +""" + +from policyengine_core.parameters import Parameter, ParameterNode + + +_ALIASED_PARAMETERS = ("income_elasticity", "substitution_elasticity") + + +def add_lsr_deprecation_aliases(parameters: ParameterNode) -> ParameterNode: + simulation = parameters.gov.simulation + canonical = simulation.labour_supply_responses + + legacy_node = ParameterNode( + name="gov.simulation.labor_supply_responses", + data={}, + ) + + for child_name in _ALIASED_PARAMETERS: + canonical_child: Parameter = getattr(canonical, child_name) + legacy_child = canonical_child.clone() + legacy_child.name = f"gov.simulation.labor_supply_responses.{child_name}" + legacy_node.add_child(child_name, legacy_child) + + simulation.add_child("labor_supply_responses", legacy_node) + return parameters diff --git a/policyengine_uk/tax_benefit_system.py b/policyengine_uk/tax_benefit_system.py index 3ea8b6515..e9339b745 100644 --- a/policyengine_uk/tax_benefit_system.py +++ b/policyengine_uk/tax_benefit_system.py @@ -30,6 +30,9 @@ from policyengine_uk.parameters.gov.economic_assumptions.lag_cpi import ( add_lagged_cpi, ) +from policyengine_uk.parameters.gov.simulation.labour_supply_responses.aliases import ( + add_lsr_deprecation_aliases, +) from policyengine_uk.utils.parameters import ( backdate_parameters, convert_to_fiscal_year_parameters, @@ -93,6 +96,7 @@ def process_parameters(self) -> None: self.parameters = add_lagged_cpi(self.parameters) self.parameters = add_triple_lock(self.parameters) self.parameters = create_economic_assumption_indices(self.parameters) + self.parameters = add_lsr_deprecation_aliases(self.parameters) # Create baseline parameters for reform comparisons self.parameters.add_child("baseline", self.parameters.clone())