fix warning condition

This commit is contained in:
markus 2021-02-02 13:01:37 +01:00
parent 1ae52ffdf8
commit e850746c3b

View file

@ -119,7 +119,8 @@ class MCInfectedPopulation(models.Population):
assert self.breathing_category is not None, \
"expiratory_activity specified as 0 (breathing) without specified 'breathing_category'"
else:
print("'breathing_category' unused as 0 (breathing) was not chosen as 'expiratory_activity'")
if self.breathing_category is not None:
print("'breathing_category' unused as 0 (breathing) was not chosen as 'expiratory_activity'")
if self.breathing_category is not None:
csi, lamb = lognormal_parameters[self.breathing_category]