scipy.integrate.trapz was renamed to trapezoid
Traceback (most recent call last):
File "/builds/NoiseBudget/aligoNB/production_code/H1/lho_residual_noisebudget.py", line 21, in <module>
import aligoNB.H1
File "/builds/NoiseBudget/aligoNB/aligoNB/H1/__init__.py", line 1, in <module>
from .budget import H1, H1GWINCQuantum, CorrelatedDARM, QuantumStrain
File "/builds/NoiseBudget/aligoNB/aligoNB/H1/budget.py", line 34, in <module>
from . import quantum
File "/builds/NoiseBudget/aligoNB/aligoNB/H1/quantum.py", line 7, in <module>
from gwinc.noise import quantum as gwinc_quantum
File "/builds/NoiseBudget/aligoNB/pygwinc/gwinc/noise/__init__.py", line 2, in <module>
from . import residualgas
File "/builds/NoiseBudget/aligoNB/pygwinc/gwinc/noise/residualgas.py", line 7, in <module>
from scipy.integrate import trapz
ImportError: cannot import name 'trapz' from 'scipy.integrate' (/opt/conda/lib/python3.10/site-packages/scipy/integrate/__init__.py)
We can probably switch to trapezoid
unconditionally here, since it dates back to scipy 1.6.0 (2020).