From b995195c40d3933a41908ac66e874bab015fa91d Mon Sep 17 00:00:00 2001 From: Mark Date: Mon, 18 Mar 2024 11:11:27 +0100 Subject: [PATCH] remove curser when experiment runs --- experiment_management/experiment_manager_va.py | 5 +++++ experiment_management/experiment_manager_wm.py | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/experiment_management/experiment_manager_va.py b/experiment_management/experiment_manager_va.py index 72dfc89..a2cf8c1 100644 --- a/experiment_management/experiment_manager_va.py +++ b/experiment_management/experiment_manager_va.py @@ -172,6 +172,7 @@ def execute_current_trial( # Check that all dependencies are available # at runtime self._check_dependencies_ready() + self.window.mouseVisible = False # Check which input parameters where given, # and set None values to defaults @@ -205,6 +206,7 @@ def execute_current_trial( # Display rest period fixation mark self.fixation_mark.draw() + self.window.mouseVisible = False self.window.flip() self.trigger.send_trigger(self.trigger_map["rest"]) self.core.wait(rest_duration) @@ -220,6 +222,7 @@ def execute_current_trial( # Give lateral attention cue msg = self.text_stim(self.window, text=ATT_SIDE_INSTRUCTION_MAP[grating_side], height=100) msg.draw() + self.window.mouseVisible = False self.window.flip() self.trigger.send_trigger(self.trigger_map["lateral-cue"]) self.core.wait(instruction_duration) @@ -227,6 +230,7 @@ def execute_current_trial( # Show fixation grating self.fixation_grating.ori = evas.GRATING_ORIENTATION_MAP[grating_side] self.fixation_grating.draw() + self.window.mouseVisible = False self.window.flip() self.trigger.send_trigger(self.trigger_map["fixation-grating"]) # Set the duration of the fixation; varys depending on @@ -249,6 +253,7 @@ def execute_current_trial( self.detection_grating.ori = detection_grating_orientation self.detection_grating.draw() self.fixation_grating.draw() + self.window.mouseVisible = False self.window.flip() self.trigger.send_trigger(self.trigger_map["driscrimination-grating"]) diff --git a/experiment_management/experiment_manager_wm.py b/experiment_management/experiment_manager_wm.py index 77f6a2f..93b4b1f 100644 --- a/experiment_management/experiment_manager_wm.py +++ b/experiment_management/experiment_manager_wm.py @@ -189,6 +189,7 @@ def execute_current_trial( # Fixation point self.fixation_mark.draw() + self.window.mouseVisible = False self.window.flip() self.trigger.send_trigger(self.trigger_map["rest"]) self.core.wait(wm_task_duration) @@ -209,12 +210,14 @@ def execute_current_trial( height=100, ) msg.draw() + self.window.mouseVisible = False self.window.flip() self.trigger.send_trigger(self.trigger_map["sum"]) self.core.wait(wm_task_duration) # Fixation point self.fixation_mark.draw() + self.window.mouseVisible = False self.window.flip() self.trigger.send_trigger(self.trigger_map["fixation-wait"]) self.core.wait(random.uniform(*fixation_duration_range)) @@ -224,6 +227,7 @@ def execute_current_trial( msg = self.text_stim(self.window, text=f"{presented_sum}", height=100) msg.draw() self.trigger.send_trigger(self.trigger_map["result"]) + self.window.mouseVisible = False self.window.flip() # Read the response and reaction time