Skip to content

Commit

Permalink
Merge pull request #283 from JohnGriffiths/set_fullscreen_param
Browse files Browse the repository at this point in the history
Make full screen optional
  • Loading branch information
JohnGriffiths authored Dec 5, 2024
2 parents a623201 + c8aaea4 commit 06b1843
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions eegnb/experiments/Experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
class BaseExperiment:

def __init__(self, exp_name, duration, eeg, save_fn, n_trials: int, iti: float, soa: float, jitter: float,
use_vr=False):
use_vr=False, use_fullscr = True):
""" Initializer for the Base Experiment Class
Args:
Expand All @@ -50,6 +50,8 @@ def __init__(self, exp_name, duration, eeg, save_fn, n_trials: int, iti: float,
self.soa = soa
self.jitter = jitter
self.use_vr = use_vr
self.use_fullscr = use_fullscr
self.window_size = [1600,800]

@abstractmethod
def load_stimulus(self):
Expand Down Expand Up @@ -85,7 +87,7 @@ def setup(self, instructions=True):
# Setting up Graphics
self.window = (
visual.Rift(monoscopic=True, headLocked=True) if self.use_vr
else visual.Window([1600, 900], monitor="testMonitor", units="deg", fullscr=True))
else visual.Window(self.window_size, monitor="testMonitor", units="deg", fullscr=self.use_fullscr))

# Loading the stimulus from the specific experiment, throws an error if not overwritten in the specific experiment
self.stim = self.load_stimulus()
Expand Down

0 comments on commit 06b1843

Please sign in to comment.