-
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
Matrix Inquiry Preview #353
Conversation
…to move some code to main module
… in Copy Phrase task which caused preview to be displayed twice. Updated demos and fixed unit tests
…ing inquiry preview
self.max_wait = max_wait | ||
self.key_input = key_input | ||
self.clock = clock or Clock() | ||
self.response: Optional[List] = 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.
List[str, float]
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 it would actually need to be something like Union[List[str], List[int]]
, which isn't quite right either. The problem is that a list is actually not a good representation of this data structure. It would make more sense to be a Tuple[str, float]
, which we do in some places. I made a cleanup ticket to address this across the code base: https://www.pivotaltracker.com/story/show/188409248.
mode: ButtonPressMode) -> Type[ButtonPressHandler]: | ||
"""Get the appropriate handler constructor for the given button press mode.""" | ||
mapping = { | ||
ButtonPressMode.NOTHING: PreviewOnlyButtonPressHandler, |
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 like this approach!
@@ -128,6 +135,15 @@ def schedule_to(self, | |||
self.stimuli_timing = timing or [] | |||
self.stimuli_colors = colors or [] | |||
|
|||
@property |
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 property is also set on the task class?
Overview
Added Inquiry Preview functionality for Matrix Calibration and Matrix Copy Phrase. Fixed a bug in RSVP Copy Phrase when using Inquiry Preview.
Ticket
https://www.pivotaltracker.com/story/show/188181571
Contributions
Test