lib/residence/carbon_model.rb in residence-0.0.12 vs lib/residence/carbon_model.rb in residence-0.0.13

- old
+ new

@@ -384,10 +384,10 @@ energy -= cohort.weighted_average(:annual_energy_from_electricity_for_clothes_driers) clothes_machine_use_cohort = ResidentialEnergyConsumptionSurveyResponse.big_cohort(characteristics.slice(*([:clothes_machine_use].push(*ResidentialEnergyConsumptionSurveyResponse::INPUT_CHARACTERISTICS))), ResidentialEnergyConsumptionSurveyResponse::SUBCOHORT_THRESHOLD) if clothes_machine_use_cohort.any? energy += clothes_machine_use_cohort.weighted_average(:annual_energy_from_electricity_for_clothes_driers).to_f else - energy += charcteristics[:clothes_machine_use].annual_energy_from_electricity_for_clothes_driers + energy += characteristics[:clothes_machine_use].annual_energy_from_electricity_for_clothes_driers end end if refrigerator_count = characteristics[:refrigerator_count] energy -= cohort.weighted_average(:annual_energy_from_electricity_for_refrigerators)