-
Notifications
You must be signed in to change notification settings - Fork 34
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
Calib all symbols #287
Calib all symbols #287
Conversation
…istribution. Factored out calculation of random_target_positions into its own function which could be thoroughly tested. Added unit tests for new function
…ries. Refactored to ensure that symbols were presented as targets with equal frequency
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a really clean addition! Thanks for the PR, Matt!
target_indexes = distributed_target_positions(stim_number, stim_length, nontarget_inquiries) | ||
if timing is None: | ||
timing = [0.5, 1, 0.2] | ||
if color is None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd be okay making these required inputs. I don't think we gain much from having these defaults.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the main advantage is in testing and demos when we primarily care about the symbols.
bcipy/helpers/stimuli.py
Outdated
stim_order: StimuliOrder = StimuliOrder.RANDOM, | ||
target_positions: TargetPositions = TargetPositions.RANDOM, | ||
nontarget_inquiries: int = 10, | ||
percentage_without_target: int = 10, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Based on our previous discussions maybe we can scrap this number and set the default as 0?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a great update, thank you so much Matt!
Overview
Refactored stimuli generation to ensure that all symbols are shown in a calibration.
Ticket
https://www.pivotaltracker.com/story/show/185235958
Contributions
Test