Skip to content

Commit

Permalink
Avoid problems in case of reforms
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvainipp committed Dec 10, 2024
1 parent ccc5c4a commit 70b6d36
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions openfisca_survey_manager/calibration.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,6 @@ def set_calibrated_weights(self):
weight_variable = simulation.tax_benefit_system.variables[weight_name]
if weight_name == self.weight_name:
weight_variable.unit = "base_weight" # The weight variable is flagged as the one that have changed
if weight_variable.formulas:
weight_variable.formulas = [] # The weight variable becomes an input variable after it changes with calibration
# Delete other entites already computed weigths
# to ensure that this weights a recomputed if they derive from
# the calibrated weight variable
Expand Down

0 comments on commit 70b6d36

Please sign in to comment.