Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
BF: Add status attribute in CedrusBox script generation #1493
Attempting to utilize a cedrusButtonBox response in the Builder view results in the error:
AttributeError: 'ResponseDevice' object has no attribute 'status'
Unlike classes like KeyBoardComponent, cedrusButtonBoxComponent does not have a corresponding response class in which the status attribute is initialized. However, the status attribute is still necessary for the experiment script to run, hence the changes.
@@ Coverage Diff @@ ## master #1493 +/- ## ======================================= Coverage 49.83% 49.83% ======================================= Files 249 249 Lines 39614 39614 Branches 5983 5983 ======================================= Hits 19741 19741 Misses 18124 18124 Partials 1749 1749
Your indentation was broken in that change. I've pulled it in anyway and fixed the indentation in 9fb5dd9
Try to write/edit python code using an editor that is Python-aware (Spyder and PyCharm CE are both excellent free options). If you use a simpler editor, make sure that it is at least inserting 4 spaces instead of tab characters - that's what nearly all python programmers do. Your commit ended up with mixed tabs and spaces