From e0a321dd86f2a2eab21e5bbd3679d10e297d2997 Mon Sep 17 00:00:00 2001 From: Nicolas Mounet Date: Tue, 3 Oct 2023 12:35:38 +0200 Subject: [PATCH] fixing mypy issue --- caimira/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/caimira/models.py b/caimira/models.py index 7a14f33f..24ef62e2 100644 --- a/caimira/models.py +++ b/caimira/models.py @@ -1061,7 +1061,7 @@ class _ConcentrationModelBase: invRR[RR == 0.] = np.nan invRR[RR != 0.] = 1. / RR[RR != 0.] else: - invRR = np.nan if RR == 0. else 1. / RR + invRR = np.nan if RR == 0. else 1. / RR # type: ignore return (self.population.people_present(time) * invRR / V + self.min_background_concentration()/self.normalization_factor())