Hi All,
I'm having a really frustrating problem working collaboratively on a Builder experiment. During development, we have the experiment in a DropBox folder so we can make changes and test them interactively across sites.
I'm on OS X, the other party is running Windows. I enter something like this in a code component:
# if the participant made a decision, go on to the feedback:
if 'left' in resp.keys or 'right' in resp.keys:
repeats.finished = True
And that is exactly what Builder generates for me when it creates the .py file (i.e. correctly formatted and indented code). But when the other person runs the same Builder file under Windows, this is what gets generated in their .py file:
# if the participant made a decision, go on to the feedback: if 'left' in resp.keys or 'right' in resp.keys: repeats.finished = True
In this case, the code is skipped entirely, as it all ends up as a single-line comment. But if there is no leading comment, then syntax errors are generated because the ' ' sequences end up within executable code.
Has anyone else seen this and knows what the issue is with not getting line endings into the .py file from code components?
Debugging the experiment is grinding to a halt here…
Regards,
Michael
--
Michael R. MacAskill, PhD 66 Stewart St
Research Director, Christchurch 8011
New Zealand Brain Research Institute NEW ZEALAND
Senior Research Fellow,
michael....@nzbri.org
Te Whare Wānanga o Otāgo, Otautahi Ph:
+64 3 3786 072
University of Otago, Christchurch
http://www.nzbri.org/macaskill