From 466f19eb2e2faaa1532711f43f8fd1bbd35478a2 Mon Sep 17 00:00:00 2001 From: Marcel Office Desktop Date: Wed, 28 Aug 2024 18:01:03 +0200 Subject: [PATCH] [bugfix] fixed import for tukey in newer scipy versions --- pylot/core/pick/charfuns.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pylot/core/pick/charfuns.py b/pylot/core/pick/charfuns.py index d5e0bee8..7cbfcc36 100644 --- a/pylot/core/pick/charfuns.py +++ b/pylot/core/pick/charfuns.py @@ -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