Skip to content

Commit

Permalink
fixed the checkerboard size for vr - good data.
Browse files Browse the repository at this point in the history
  • Loading branch information
pellet committed Oct 9, 2024
1 parent ad5d229 commit 8c00104
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions eegnb/experiments/visual_vep/pattern_reversal_vep.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,13 @@ def create_monitor_checkerboard(intensity_checks):
@staticmethod
def create_vr_checkerboard(intensity_checks):
return contrast_contrast(
visual_size=(21, 21), # size in degrees
visual_size=(15, 15), # size in degrees
ppd=30, # pixels per degree
frequency=(1, 1), # spatial frequency of the checkerboard
intensity_checks=intensity_checks,
target_shape=(1, 1),
alpha=0,
tau=0,
check_visual_size=0.5
tau=0
)

def load_stimulus(self):
Expand All @@ -52,10 +51,15 @@ def load_stimulus(self):
# Create Monitor checkerboard
create_checkerboard = self.create_monitor_checkerboard

if self.use_vr:
size = self.window.size / 1.5
else:
size = self.window.size

def create_checkerboard_stim(intensity_checks):
return visual.ImageStim(self.window,
image=create_checkerboard(intensity_checks)['img'],
units='pix', size=self.window.size, color='white')
units='pix', size=size, color='white')

return [create_checkerboard_stim((1, -1)), create_checkerboard_stim((-1, 1))]

Expand Down

0 comments on commit 8c00104

Please sign in to comment.