Skip to content

Commit

Permalink
Set townsend lower limit to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
vvcb committed Feb 5, 2023
1 parent e33da80 commit c96b49f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions avoidable_admissions/data/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ class Config:
checks=[pa.Check.isin(set(feature_maps.ethnos.values()))],
),
"townsend_score_quintile": pa.Column(
int, nullable=True, checks=[pa.Check.in_range(min_value=1, max_value=5)]
int, nullable=True, checks=[pa.Check.in_range(min_value=0, max_value=5)]
),
"admisorc_cat": pa.Column(
nullable=True, checks=[pa.Check.isin(set(feature_maps.admisorc.values()))]
Expand Down Expand Up @@ -384,7 +384,7 @@ class Config:
checks=[pa.Check.isin(set(feature_maps.ethnos.values()))],
),
"townsend_score_quintile": pa.Column(
int, nullable=True, checks=[pa.Check.in_range(min_value=1, max_value=5)]
int, nullable=True, checks=[pa.Check.in_range(min_value=0, max_value=5)]
),
"accommodationstatus_cat": pa.Column(
str,
Expand Down

0 comments on commit c96b49f

Please sign in to comment.