fix warning condition
This commit is contained in:
parent
1ae52ffdf8
commit
e850746c3b
1 changed files with 2 additions and 1 deletions
|
|
@ -119,6 +119,7 @@ class MCInfectedPopulation(models.Population):
|
||||||
assert self.breathing_category is not None, \
|
assert self.breathing_category is not None, \
|
||||||
"expiratory_activity specified as 0 (breathing) without specified 'breathing_category'"
|
"expiratory_activity specified as 0 (breathing) without specified 'breathing_category'"
|
||||||
else:
|
else:
|
||||||
|
if self.breathing_category is not None:
|
||||||
print("'breathing_category' unused as 0 (breathing) was not chosen as 'expiratory_activity'")
|
print("'breathing_category' unused as 0 (breathing) was not chosen as 'expiratory_activity'")
|
||||||
|
|
||||||
if self.breathing_category is not None:
|
if self.breathing_category is not None:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue