Skip to content

Commit 74beb46

Browse files
Fix bounds
1 parent f067f02 commit 74beb46

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

  • policyengine_uk_data/datasets/local_areas

policyengine_uk_data/datasets/local_areas/constituencies/loss.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def create_constituency_target_matrix(
109109
targets_total_pop += age_count.values.sum()
110110

111111
# Adjust for consistency
112-
for lower_age in range(80, 120, 5):
112+
for lower_age in range(0, 80, 10):
113113
upper_age = lower_age + 5
114114

115115
in_age_band = (age >= lower_age) & (age < upper_age)

policyengine_uk_data/datasets/local_areas/local_authorities/loss.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def create_local_authority_target_matrix(
100100
targets_total_pop += age_count.values.sum()
101101

102102
# Adjust for consistency
103-
for lower_age in range(80, 120, 5):
103+
for lower_age in range(0, 80, 10):
104104
upper_age = lower_age + 5
105105

106106
in_age_band = (age >= lower_age) & (age < upper_age)

0 commit comments

Comments
 (0)