Skip to content

Commit

Permalink
minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
hussain-jafari committed Feb 20, 2024
1 parent f5c46c7 commit 84c17a9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/vivarium_inputs/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,6 @@ def filter_data_by_restrictions(

start, end = get_age_group_ids_by_restriction(entity, which_age)
ages = get_restriction_age_ids(start, end, age_group_ids)
# ages = ages + [238, 388, 389]
data = data[data.age_group_id.isin(ages)]
return data

Expand Down Expand Up @@ -400,7 +399,9 @@ def get_restriction_age_ids(
"""Get the start/end age group id and return the list of GBD age_group_ids
in-between.
"""
# TODO: remove after MIC-4519 is done
start_id = 238 if start_id == 4 else start_id

if start_id is None or end_id is None:
data = []
else:
Expand Down
1 change: 0 additions & 1 deletion src/vivarium_inputs/validation/raw.py
Original file line number Diff line number Diff line change
Expand Up @@ -2051,7 +2051,6 @@ def _check_continuity(data_ages: set, all_ages: set) -> None:
all_ages = list(all_ages)
all_ages.sort()
data_ages.sort()

if (
all_ages[all_ages.index(data_ages[0]) : all_ages.index(data_ages[-1]) + 1]
!= data_ages
Expand Down
2 changes: 2 additions & 0 deletions src/vivarium_inputs/validation/sim.py
Original file line number Diff line number Diff line change
Expand Up @@ -1570,7 +1570,9 @@ def check_age_restrictions(
"""
start_id, end_id = utilities.get_age_group_ids_by_restriction(entity, rest_type)
# TODO: remove after MIC-4519 is done
start_id = 238 if start_id==4 else start_id

age_bins = context["age_bins"]
id_to_age_start_map = dict(zip(age_bins.age_group_id, age_bins.age_start))
age_range_start = id_to_age_start_map[start_id]
Expand Down

0 comments on commit 84c17a9

Please sign in to comment.