Skip to content

Commit

Permalink
removed old bullseye, changed name and small updates
Browse files Browse the repository at this point in the history
  • Loading branch information
LynnSchmittwilken committed Jun 17, 2022
1 parent a219b6b commit e6debd3
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions stimuli/illusions/bullseye.py
@@ -1,8 +1,8 @@
from stimuli.illusions.rings import rings
from stimuli.illusions.rings import ring_stimulus
from stimuli.utils import plot_stim


def bullseye(
def bullseye_stimulus(
ppd=10,
n_rings=8,
target_idx=0,
Expand Down Expand Up @@ -35,21 +35,21 @@ def bullseye(
-------
A stimulus dictionary with the stimulus ['img'] and target mask ['mask']
"""
stim = rings(
ppd=ppd,
n_rings=n_rings,
target_idx=target_idx,
ring_width=ring_width,
vring1=vring1,
vring2=vring2,
vtarget=vtarget
)
stim = ring_stimulus(
ppd=ppd,
n_rings=n_rings,
target_idx=target_idx,
ring_width=ring_width,
vring1=vring1,
vring2=vring2,
vtarget=vtarget,
)

return {"img": stim['img'], "mask": stim['mask']}


if __name__ == "__main__":
import matplotlib.pyplot as plt

stim = bullseye()
stim = bullseye_stimulus()
plot_stim(stim, mask=True)

0 comments on commit e6debd3

Please sign in to comment.