Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions changelog_entry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- bump: patch
changes:
fixed:
- Bug with BRMA variable name.
2 changes: 1 addition & 1 deletion policyengine_uk/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class CountryTaxBenefitSystem(TaxBenefitSystem):
variables_dir = COUNTRY_DIR / "variables"
auto_carry_over_input_variables = True
basic_inputs = [
"BRMA",
"brma",
"local_authority",
"region",
"employment_income",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,22 @@
age: 18
LHA_category: C
output:
BRMA: MAIDSTONE
brma: MAIDSTONE
BRMA_LHA_rate: 9_771
- name: BRMA inputs
period: 2020
absolute_error_margin: 0
input:
BRMA: GUILDFORD
brma: GUILDFORD
output:
BRMA: GUILDFORD
brma: GUILDFORD
- name: BRMA and category
period: 2020
absolute_error_margin: 20
input:
BRMA: GUILDFORD
brma: GUILDFORD
LHA_category: C
output:
BRMA: GUILDFORD
brma: GUILDFORD
LHA_category: C
BRMA_LHA_rate: 13_164
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
household:
members: [claimant]
rent: 500
BRMA: "CENTRAL_LONDON"
brma: "CENTRAL_LONDON"
tenure_type: "RENT_PRIVATELY"
output:
housing_benefit: 0
Expand Down
2 changes: 1 addition & 1 deletion policyengine_uk/variables/gov/dwp/BRMA_LHA_rate.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class BRMA_LHA_rate(Variable):

def formula(benunit, period, parameters):
brma = benunit.value_from_first_person(
benunit.members.household("BRMA", period).decode_to_str()
benunit.members.household("brma", period).decode_to_str()
)
category = benunit("LHA_category", period).decode_to_str()

Expand Down
2 changes: 1 addition & 1 deletion policyengine_uk/variables/household/BRMA.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import numpy as np


class BRMA(Variable):
class brma(Variable):
value_type = Enum
possible_values = BRMAName
default_value = BRMAName.MAIDSTONE
Expand Down
Loading