Skip to content

Commit

Permalink
Remove unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilwoodruff committed Sep 16, 2024
1 parent 64d1860 commit 401c35a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 54 deletions.
2 changes: 1 addition & 1 deletion policyengine_uk/tests/code_health/test_variables.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from policyengine_uk import BASELINE_VARIABLES
from policyengine_core.model_api import Enum
from policyengine_uk.system import variables as BASELINE_VARIABLES


def test_variable_names_match_return_types():
Expand Down
26 changes: 0 additions & 26 deletions policyengine_uk/tests/microsimulation/test_uprating.py

This file was deleted.

27 changes: 0 additions & 27 deletions policyengine_uk/variables/household/income/income.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,21 +42,6 @@ def formula(person, period, parameters):
return income - person("maintenance_expenses", period)


class gross_income(Variable):
value_type = float
entity = Person
label = "Gross income, including benefits"
definition_period = YEAR
unit = GBP

def formula(person, period, parameters):
COMPONENTS = [
"market_income",
"benefits",
]
return add(person, period, COMPONENTS)


class household_gross_income(Variable):
value_type = float
entity = Household
Expand All @@ -73,18 +58,6 @@ def formula(household, period, parameters):
)


class net_income(Variable):
value_type = float
entity = Person
label = "Net income"
documentation = "Market income, minus taxes, plus benefits"
unit = GBP
definition_period = YEAR

def formula(person, period, parameters):
return person("gross_income", period) - person("tax", period)


class hours_worked(Variable):
value_type = float
entity = Person
Expand Down

0 comments on commit 401c35a

Please sign in to comment.