Skip to content

Commit

Permalink
Remove old checkerboard from components
Browse files Browse the repository at this point in the history
  • Loading branch information
JorisVincent committed Oct 7, 2022
1 parent 0022c3a commit a39cbf5
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions stimuli/components/components.py
Expand Up @@ -231,26 +231,6 @@ def square_wave(
return stim


def checkerboard(
ppd=10,
board_shape=(8, 8),
check_size=1.0,
vcheck1=0.0,
vcheck2=1.0,
):

check_size_px = degrees_to_pixels(check_size, ppd)
nchecks_height, nchecks_width = board_shape

img = np.ndarray((nchecks_height, nchecks_width))

for i, j in np.ndindex((nchecks_height, nchecks_width)):
img[i, j] = vcheck1 if i % 2 == j % 2 else vcheck2

img = img.repeat(check_size_px, axis=0).repeat(check_size_px, axis=1)
return img


def disc_and_rings(
ppd=20,
radii=(3, 6, 9),
Expand Down

0 comments on commit a39cbf5

Please sign in to comment.