From d12e809d8011cb4b4759594df78ce2239ac71784 Mon Sep 17 00:00:00 2001 From: Nicolas Mounet Date: Mon, 31 May 2021 11:29:49 +0200 Subject: [PATCH] Better import of scipy.integrate --- cara/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cara/models.py b/cara/models.py index f88107c9..24e99e4e 100644 --- a/cara/models.py +++ b/cara/models.py @@ -37,7 +37,7 @@ import typing import numpy as np from scipy.interpolate import interp1d -from scipy.integrate import quad +import scipy.integrate if not typing.TYPE_CHECKING: from memoization import cached @@ -576,7 +576,7 @@ class Expiration(_ExpirationBase): self.BLO_factors[2] * _Omode(d) ) * volume(d*1e-4) * (1 - mask.exhale_efficiency(d*1e-4)) - return quad(integrand, 0.1, 30)[0] + return scipy.integrate.quad(integrand, 0.1, 30)[0] @dataclass(frozen=True)