From c78c82ce8a8eae17cd4aea445b56995b3323114b Mon Sep 17 00:00:00 2001 From: Seung Hyun Kim Date: Mon, 2 Dec 2024 20:38:13 -0600 Subject: [PATCH] scipy.signal.hann -> scipy.signal.windows.hann --- src/miv_simulator/stimulus.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/miv_simulator/stimulus.py b/src/miv_simulator/stimulus.py index deb3ca9..75d53e7 100644 --- a/src/miv_simulator/stimulus.py +++ b/src/miv_simulator/stimulus.py @@ -200,7 +200,8 @@ def get_equilibration(env: AbstractEnv) -> Tuple[ndarray, int]: env.stimulus_config["Equilibration Duration"] / env.stimulus_config["Temporal Resolution"] ) - from scipy.signal import hann + from scipy.signal.windows import hann + equilibrate_hann = hann(2 * equilibrate_len)[:equilibrate_len] equilibrate = (equilibrate_hann, equilibrate_len)