To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit f7d60959 authored by Jonas Fankhauser's avatar Jonas Fankhauser
Browse files

Changed types for integrate and integrate osc

parent 911ad228
Pipeline #85961 passed with stages
in 10 minutes and 58 seconds
......@@ -116,7 +116,7 @@ def Clebsch_Gordan_coefficient(j1: int, m1: int,
def integrate(func: Callable[[float], float], lower: float, upper: float,
rel_eps: Optional[float] = 1e-3) -> (float, float):
rel_eps: Optional[float] = 1e-3) -> Tuple[float, float]:
""" Integrates :attr:`func` between :attr:`lower` and :attr:`upper`. This
methods wraps Scipy's QUADPACK implementation `quad()
<https://docs.scipy.org/doc/scipy/reference/generated/
......@@ -147,7 +147,7 @@ def integrate(func: Callable[[float], float], lower: float, upper: float,
def integrate_osc(func: Callable[[float], float], lower: float, upper: float,
viscous_wavelength, boundary_layer, resolution=4,
roi_factor=5, rel_eps: Optional[float] = 1e-6
) -> (float, float):
) -> Tuple[float, float]:
""" Special purpose integrator for oscillating integrals that
integrates :attr:`func` between :attr:`lower` and :attr:`upper`. This
methods wraps Scipy's QUADPACK implementation `quad()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment