Skip to content

Commit

Permalink
fixed bug for using gaussian windows in gabor
Browse files Browse the repository at this point in the history
  • Loading branch information
LynnSchmittwilken committed Jan 10, 2023
1 parent d943680 commit c1eb21e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stimuli/components/grating.py
Expand Up @@ -371,7 +371,8 @@ def gabor(
ppd=ppd,
sigma=sigma,
)
stim["img"] *= gaussian_window["img"]
mean_int = stim["img"].mean()
stim["img"] = (stim["img"]-mean_int) * gaussian_window["img"] + mean_int

return {
**stim,
Expand Down

0 comments on commit c1eb21e

Please sign in to comment.