File tree Expand file tree Collapse file tree
policyengine_uk_data/datasets/local_areas Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -84,9 +84,12 @@ def create_constituency_target_matrix(
8484 * national_consistency_adjustment_factor
8585 )
8686
87- uk_total_population = national_demographics [
88- national_demographics .name == "uk_population"
89- ][str (time_period )].values [0 ]
87+ uk_total_population = (
88+ national_demographics [national_demographics .name == "uk_population" ][
89+ str (time_period )
90+ ].values [0 ]
91+ * 1e6
92+ )
9093
9194 age = sim .calculate ("age" ).values
9295 targets_total_pop = 0
Original file line number Diff line number Diff line change @@ -76,9 +76,12 @@ def create_local_authority_target_matrix(
7676
7777 age = sim .calculate ("age" ).values
7878 national_demographics = pd .read_csv (STORAGE_FOLDER / "demographics.csv" )
79- uk_total_population = national_demographics [
80- national_demographics .name == "uk_population"
81- ][str (time_period )].values [0 ]
79+ uk_total_population = (
80+ national_demographics [national_demographics .name == "uk_population" ][
81+ str (time_period )
82+ ].values [0 ]
83+ * 1e6
84+ )
8285
8386 age = sim .calculate ("age" ).values
8487 for lower_age in range (0 , 80 , 10 ):
You can’t perform that action at this time.
0 commit comments