From d760c72724689675537bb32d9873d2b24788c1a4 Mon Sep 17 00:00:00 2001 From: ZoeLi0525 <1558079116@qq.com> Date: Tue, 19 Nov 2024 15:36:15 +0100 Subject: [PATCH] remove the annotated code and fix error in test code --- src/vstt/task.py | 5 ----- tests/test_vis.py | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/vstt/task.py b/src/vstt/task.py index 3175d96f..a5dcceba 100644 --- a/src/vstt/task.py +++ b/src/vstt/task.py @@ -282,11 +282,6 @@ def _do_target( mouse_pos = tm.cursor.pos stop_waiting_time = 0.0 stop_target_time = 0.0 - # tm.green_target_index = ( - # tm.green_target_index - # if tm.green_target_index == trial["num_targets"] - # else None - # ) if trial["fixed_target_intervals"]: num_completed_targets = len(trial_data.to_target_timestamps) stop_waiting_time = (num_completed_targets + 1) * trial[ diff --git a/tests/test_vis.py b/tests/test_vis.py index edd84e01..a16f0302 100644 --- a/tests/test_vis.py +++ b/tests/test_vis.py @@ -77,7 +77,7 @@ def test_update_target_colors( window: Window, n_targets: int, add_central_target: bool ) -> None: for show_inactive_targets, inactive_color in [ - (True, (0.1, 0.1, 0.1)), + (True, (0.9, 0.9, 0.9)), (False, (0, 0, 0)), ]: red = (1.0, -1.0, -1.0)