Skip to content

Commit

Permalink
Merge pull request #83 from GazzolaLab/bug/minor-deprecated-function
Browse files Browse the repository at this point in the history
[minor] scipy.signal.hann -> scipy.signal.windows.hann
  • Loading branch information
iraikov authored Dec 3, 2024
2 parents f2d398a + c78c82c commit 6844ead
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/miv_simulator/stimulus.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6844ead

Please sign in to comment.