From 114773b7174a363e66d9b61574e3ef86413a3d0c Mon Sep 17 00:00:00 2001 From: Luis Aleixo Date: Thu, 10 Mar 2022 18:43:01 +0000 Subject: [PATCH] changed diameter verification order in the condition within the deposited_exposure_between_bounds method --- cara/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cara/models.py b/cara/models.py index 080337c8..d476f130 100644 --- a/cara/models.py +++ b/cara/models.py @@ -1218,7 +1218,7 @@ class ExposureModel: diameter = self.short_range.expirations[index].particle.diameter # Aerosols not considered given the formula for the initial concentration at mouth/nose. - if not np.isscalar(diameter) and diameter is not None: + if diameter is not None and not np.isscalar(diameter): # we compute first the mean of all diameter-dependent quantities # to perform properly the Monte-Carlo integration over # particle diameters (doing things in another order would