def get_lice_treatment_mortality_rate(self, lice_population: LicePopulation, temperature: float) -> GenoTreatmentDistrib:
    if (temperature >= 12):
        efficacy = 0.8
    else:
        efficacy = 0.99
    susceptible_populations = [lice_population.geno_by_lifestage[stage] for stage in LicePopulation.susceptible_stages]
    num_susc_per_geno = cast(GenoDistrib, GenoDistrib.batch_sum(susceptible_populations))
    geno_treatment_distrib = {geno: GenoTreatmentValue(efficacy, cast(int, num_susc)) for (geno, num_susc) in num_susc_per_geno.items()}
    return geno_treatment_distrib
def get_lice_treatment_mortality_rate(self, lice_population: LicePopulation, temperature: float) -> GenoTreatmentDistrib:
    if (temperature >= 12):
        efficacy = 0.8
    else:
        efficacy = 0.99
    susceptible_populations = [lice_population.geno_by_lifestage[stage] for stage in LicePopulation.susceptible_stages]
    num_susc_per_geno = cast(GenoDistrib, GenoDistrib.batch_sum(susceptible_populations))
    geno_treatment_distrib = {geno: GenoTreatmentValue(efficacy, cast(int, num_susc)) for (geno, num_susc) in num_susc_per_geno.items()}
    return geno_treatment_distrib