Skip to content

Commit 06b1843

Browse files
Merge pull request #283 from JohnGriffiths/set_fullscreen_param
Make full screen optional
2 parents a623201 + c8aaea4 commit 06b1843

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

eegnb/experiments/Experiment.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
class BaseExperiment:
2929

3030
def __init__(self, exp_name, duration, eeg, save_fn, n_trials: int, iti: float, soa: float, jitter: float,
31-
use_vr=False):
31+
use_vr=False, use_fullscr = True):
3232
""" Initializer for the Base Experiment Class
3333
3434
Args:
@@ -50,6 +50,8 @@ def __init__(self, exp_name, duration, eeg, save_fn, n_trials: int, iti: float,
5050
self.soa = soa
5151
self.jitter = jitter
5252
self.use_vr = use_vr
53+
self.use_fullscr = use_fullscr
54+
self.window_size = [1600,800]
5355

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

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

0 commit comments

Comments
 (0)