[bugfix] fixed import for tukey in newer scipy versions

This commit is contained in:
Marcel Paffrath 2024-08-28 18:01:03 +02:00
parent 5d90904838
commit 466f19eb2e

View File

@ -17,7 +17,11 @@ autoregressive prediction: application ot local and regional distances, Geophys.
:author: MAGS2 EP3 working group
"""
import numpy as np
from scipy import signal
try:
from scipy.signal import tukey
except ImportError:
from scipy.signal.windows import tukey
from obspy.core import Stream
from pylot.core.pick.utils import PickingFailedException