Skip to content

Commit

Permalink
remove the annotated code and fix error in test code
Browse files Browse the repository at this point in the history
  • Loading branch information
ZoeLi0525 committed Nov 19, 2024
1 parent 3ec68e1 commit d760c72
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions src/vstt/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -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[
Expand Down
2 changes: 1 addition & 1 deletion tests/test_vis.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d760c72

Please sign in to comment.