Skip to content

Commit

Permalink
Flake8 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mghosh00 committed Feb 14, 2024
1 parent d373969 commit 456a58a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion pyEpiabm/pyEpiabm/tests/test_func/test_sim_functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,6 @@ def test_waning_status_count(self, *mocks):
for status in [InfectionStatus.InfectASympt]:
count_with_waning += cell_data[status]


# Record the number of individuals within the compartment InfectAsympt
# when waning immunity is not active
pe.Parameters.instance().use_waning_immunity = 0.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,6 @@ def test___call___(self):
q = self.multiplier(26.0, 15)
self.assertAlmostEqual(0.03412, q, places=5)


if __name__ == "__main__":
unittest.main()
2 changes: 1 addition & 1 deletion pyEpiabm/pyEpiabm/utility/igg_foi_multiplier.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def __call__(self, time_since_infection: float, age_group: int) -> float:
return 1 - igg_titre

def _calculate_igg_titre(self, time_since_max: float,
age_group: int) -> float:
age_group: int) -> float:
"""The general expression for the titre is A * 2^(-t/c) where A is the
max titre and c is the half-life. Both these values vary with age, and
so given the values at age = 41 and the changes per 10 years of age,
Expand Down

0 comments on commit 456a58a

Please sign in to comment.