diff --git a/openfisca_survey_manager/scenarios/abstract_scenario.py b/openfisca_survey_manager/scenarios/abstract_scenario.py index c1e7add8..274e7dc1 100644 --- a/openfisca_survey_manager/scenarios/abstract_scenario.py +++ b/openfisca_survey_manager/scenarios/abstract_scenario.py @@ -621,7 +621,7 @@ def init_from_data(self, calibration_kwargs = None, inflation_kwargs = None, # Inverting reform and baseline because we are more likely # to use baseline input in reform than the other way around self.simulations = dict() - for simulation_name, tax_benefit_system in self.tax_benefit_systems.items(): + for simulation_name, _ in self.tax_benefit_systems.items(): self.new_simulation(simulation_name, debug = debug, data = data, trace = trace, memory_config = memory_config) if use_marginal_tax_rate: self.new_simulation(simulation_name, debug = debug, data = data, trace = trace, memory_config = memory_config, marginal_tax_rate_only = True) diff --git a/openfisca_survey_manager/tests/test_calibration.py b/openfisca_survey_manager/tests/test_calibration.py index ae419e6c..14191e06 100644 --- a/openfisca_survey_manager/tests/test_calibration.py +++ b/openfisca_survey_manager/tests/test_calibration.py @@ -24,7 +24,7 @@ def test_calibration_variable_entity_is_weight_entity(): parameters = {"method": "raking ratio"}, ) - for simulation_name, simulation in survey_scenario.simulations.items(): + for _, simulation in survey_scenario.simulations.items(): assert all(simulation.calibration.weight != simulation.calibration.initial_weight) assert_near(survey_scenario.compute_aggregate("rent", period = period), target_rent_aggregate)