Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update color of targets and center #279

Merged
merged 8 commits into from
Nov 19, 2024
Merged

Conversation

ZoeJacky
Copy link
Collaborator

When "Turn target to green when reached" is selected and "Delay before central target display(secs)" > 0s:

  • Once the outer target is reached, it will turn to green until the next central target display.
  • But when the central target is reached, it will just turn to gray.

Could you confirm if this behavior aligns with the expected functionality?

Copy link
Member

@lkeegan lkeegan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, looks good! some minor comments/suggestions.

regarding the expected functionality, for the outer targets it looks good, but I guess it would make sense to do the same thing for the central target, i.e. it should also go green after it is reached, until the next target is displayed

src/vstt/task.py Outdated Show resolved Hide resolved
src/vstt/trial.py Outdated Show resolved Hide resolved
src/vstt/vis.py Outdated Show resolved Hide resolved
@lkeegan
Copy link
Member

lkeegan commented Nov 12, 2024

Also the tests are failing in CI - I think you'll need to add your new option to trial_dict in this test, as that is supposed to contain all valid keys:

vstt/tests/test_trial.py

Lines 48 to 51 in 8a014de

def test_import_trial() -> None:
default_trial = vstt.trial.default_trial()
trial_dict = {
"weight": 2,

…en_target_index to function update_target_colors instead of tm;add turn_target_to_green_when_reached:False to the test_import_trial()
@ZoeJacky
Copy link
Collaborator Author

thanks, looks good! some minor comments/suggestions.

regarding the expected functionality, for the outer targets it looks good, but I guess it would make sense to do the same thing for the central target, i.e. it should also go green after it is reached, until the next target is displayed

thanks, looks good! some minor comments/suggestions.

regarding the expected functionality, for the outer targets it looks good, but I guess it would make sense to do the same thing for the central target, i.e. it should also go green after it is reached, until the next target is displayed

update:
When "Turn target to green when reached" is selected and the related delay time > 0s:
Once the outer or central target is reached, it will turn to green until the next central or outer target display.

Copy link
Member

@lkeegan lkeegan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks - behaviour looks good now, one suggestion to simplify the logic.

also there are still tests that need to be updated

src/vstt/task.py Outdated Show resolved Hide resolved
@ZoeJacky ZoeJacky merged commit 29a1065 into main Nov 19, 2024
17 checks passed
@ZoeJacky ZoeJacky deleted the update_color_of_targets_and_center branch November 19, 2024 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants