Skip to content

Commit

Permalink
Fix is_cencus input args
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonZogk committed Nov 6, 2024
1 parent 4d1df84 commit 15eea7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mbs_results/estimation/apply_estimation.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@ def apply_estimation(population_path, sample_path, calibration_group, period, **
population_file, sample_file, period, **config
)

census_df = estimation_data[is_census(estimation_data, calibration_group)]
census_df = estimation_data[is_census(estimation_data[calibration_group])]

census_df["design_weight"] = 1
census_df["calibration_factor"] = 1
census_df["sampled"] = 0

non_census_df = estimation_data[
~(is_census(estimation_data, calibration_group))
~(is_census(estimation_data[calibration_group]))
]

non_census_df = calculate_design_weight(non_census_df, period, **config)
Expand Down

0 comments on commit 15eea7e

Please sign in to comment.