Skip to content

Commit

Permalink
Pinwheel: use mask of disc to mask, not img
Browse files Browse the repository at this point in the history
  • Loading branch information
JorisVincent committed Dec 14, 2022
1 parent df8b164 commit 0aba9be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stimuli/components/angular.py
Expand Up @@ -389,7 +389,7 @@ def pinwheel(
)

# Mask out everywhere that the disc isn't
stim["img"] = np.where(disc["img"], stim["img"], intensity_background)
stim["mask"] = np.where(disc["img"], stim["mask"], 0)
stim["img"] = np.where(disc["mask"], stim["img"], intensity_background)
stim["mask"] = np.where(disc["mask"], stim["mask"], 0)

return {**stim, "radii": disc["radii"], "intensity_background": intensity_background}

0 comments on commit 0aba9be

Please sign in to comment.