Solving a failing mypy test in test_full_algorithm

This commit is contained in:
Nicolas Mounet 2022-12-14 10:22:33 +01:00 committed by Luis Aleixo
parent 266a3727e8
commit ec6add4881

View file

@ -229,7 +229,7 @@ class SimpleShortRangeModel:
x = np.array(self.distance)
dilution = np.empty(x.shape, dtype=np.float64)
# Exhalation airflow, as per Jia et al. (2022), m^3/s
Q_exh = self.φ * np.array(self.breathing_rate/3600)
Q_exh: _VectorisedFloat = self.φ * np.array(self.breathing_rate/3600)
# The expired flow velocity at the noozle (mouth opening), m/s
u0 = np.array(Q_exh/(np.pi/4. * self.mouth_diameter**2))
# Parameters in the jet-like stage