f"Mutation rate/s too low for: {', '.join(typ.namefortyp,rateinself.mut_rates.items() ifrate<=0)}. If this was intentional use the None keyword instead"
)
ifsum(self.mut_rates.values()) >0.5:
too_high_rates=", ".join(typ.name
fortyp, rateinself.mut_rates.items() ifrate>1)
iftoo_high_rates:
raiseRatesTooHighError(
f"Mutation rate/s too high for: {too_high_rates}")
else:
raiseRatesTooHighError("Sum of mutation rates too high")