changed diameter verification order in the condition within the deposited_exposure_between_bounds method

This commit is contained in:
Luis Aleixo 2022-03-10 18:43:01 +00:00
parent 81c6443d6a
commit 114773b717

View file

@ -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